Was wondering the how to tell what the proper way to determine the calculated field for a port. Such as launch in, NOS activation in. Trying to figure out if these channels are effecting the timers after launch, as the timers for boost and NOS keep re-starting.
Thanks, Jeff
Data logging port status questions
Moderator: LT401Vette
-
- Experienced MS/Extra'er
- Posts: 301
- Joined: Fri Nov 23, 2012 3:17 pm
Data logging port status questions
Fastest MS powered vehicle on the planet ! 6.60@208mph
-
- Site Admin
- Posts: 39619
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: Data logging port status questions
Take a look at this temporary document:
http://www.msextra.com/doc/pdf/Megasqui ... Fields.pdf
It will be incorporated into a larger manual later.
James
http://www.msextra.com/doc/pdf/Megasqui ... Fields.pdf
It will be incorporated into a larger manual later.
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
-
- Experienced MS/Extra'er
- Posts: 301
- Joined: Fri Nov 23, 2012 3:17 pm
Re: Data logging port status questions
Do you have a page of the math channels to read each individual port ?
Thanks, Jeff
Thanks, Jeff
Fastest MS powered vehicle on the planet ! 6.60@208mph
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: Data logging port status questions
I don't know if there is a document that gives the math but each port in the document linked (PORTA, PORTB, ...) is logged as a 0-255 decimal value. You need to convert that to binary and you will get an 8-bit value with each bit corresponding to what is in the document; a 1 means that the port is on and a 0 means it's off. If you don't know how, you can likely find on Google how to convert a decimal value to binary.
For example if PORTA is 129 then you have PORTA7 and PORTA0 that are on because 129 is 10000001 in binary. It's also 128 + 1 which you can relate to what in the document. Any number between 0 and 255 can be decomposed into a sum using the numbers 128, 64, 32, 16, 8, 4, 2 and 1. If you use one of those values in your sum then that port is on.
Jean
For example if PORTA is 129 then you have PORTA7 and PORTA0 that are on because 129 is 10000001 in binary. It's also 128 + 1 which you can relate to what in the document. Any number between 0 and 255 can be decomposed into a sum using the numbers 128, 64, 32, 16, 8, 4, 2 and 1. If you use one of those values in your sum then that port is on.
Jean
Re: Data logging port status questions
This is a great document, thanks for compiling this- after looking at my log it all seems to make sense now
one question; (or maybe a typo?)
from the doc;
portt is PTP (is this portp ?)
portt is PTT
one question; (or maybe a typo?)
from the doc;
portt is PTP (is this portp ?)
portt is PTT
-
- Site Admin
- Posts: 39619
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: Data logging port status questions
The document mentioned above is now superceded and incorporated into the Megasquirt-3 TunerStudio reference manual. Yes that was a typo.
To pick out a single bit in one of those fields, in the registered Megalogviewer, you can use a formula such as
Field name: PT5
Calc: [portt] & 32
James
To pick out a single bit in one of those fields, in the registered Megalogviewer, you can use a formula such as
Field name: PT5
Calc: [portt] & 32
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".