Data logging port status questions

Questions specific to Megalogviewer

Moderator: LT401Vette

Post Reply
jeffmarsh750
Experienced MS/Extra'er
Posts: 301
Joined: Fri Nov 23, 2012 3:17 pm

Data logging port status questions

Post by jeffmarsh750 »

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
Fastest MS powered vehicle on the planet ! 6.60@208mph
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Data logging port status questions

Post by jsmcortina »

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
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".
jeffmarsh750
Experienced MS/Extra'er
Posts: 301
Joined: Fri Nov 23, 2012 3:17 pm

Re: Data logging port status questions

Post by jeffmarsh750 »

Do you have a page of the math channels to read each individual port ?
Thanks, Jeff
Fastest MS powered vehicle on the planet ! 6.60@208mph
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Data logging port status questions

Post by racingmini_mtl »

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
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
JAM
Master MS/Extra'er
Posts: 626
Joined: Sun Jan 22, 2006 7:58 pm
Location: Cincinatti,OH

Re: Data logging port status questions

Post by JAM »

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
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Data logging port status questions

Post by jsmcortina »

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
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".
Post Reply