PDA

View Full Version : combining two data bytes to a single output



MattStrike
October 15th, 2009, 05:37 PM
I have several outputs given to me in two separate data bytes (A004.ds),

19: Spark Advance 1 - X
20: Spark Advance 2 - Y

SA= .01529*(256*X+Y)


It is the same thing with the injector pulse width

I want to be able to have the outputs on the dash as final values. I could import a log into excel after taking data and calculate it then, but prefer to be able to see it in real time.

Problem is that I don't see any way of doing this in the program?

Blacky
October 16th, 2009, 07:48 AM
As long as the two data bytes are next to each other (and they always are for this type of PID), select the byte number of the highest (MSB) value as the starting byte and select the length to be 16 bits. EFILive tkes care of the X*256+Y part of it.

See image

Regards
Paul

MattStrike
October 19th, 2009, 11:01 AM
Thanks! I had seen a few 16 bit data bytes before in some of the existing .xml files, but hadn't been able to figure it out for myself.