I still seem to lack some understanding of the syntax of the PID expression string. I tried:
Drehm,Drehm,63,256*A+B,0,200,Nm,7E2
U/min,U/min,0C,(256*A+B)/4,0,9000,U/min,7E2
Power,Power,63,(256*A+B)*VAL(“U/min”)/1000,0,200,kW,7E2
Drehm and U/min seemed to give me fair values, but Power does not. It seems that the “/1000” part is ignored, the numbers are too high at least by a factor of 1000. Do these operators need space characters around them?
What is about the PIDmode column? Can it be omitted in something like:
Power,Power,,VAL(“Drehm”)*VAL(“U/min”)/1000,0,200,kW,7E2
?
What is about the header column? Is it needed here, and for what? What values should be given (https://en.wikipedia.org/wiki/OBD-II_PIDs does not give them)? Can it be omitted, say:
Power,Power,,VAL(“Drehm”)*VAL(“U/min”)/1000,0,200,kW,
?
Also, what does the [] operator do? (In my case, returns zero):
Power,Power,,[0C]*[63]/1000,0,200,kW,
What is the purpose of this operator, as I can not supply the “(256*A+B)” which is actually part of the PID?
Also I am not clear about quotation. I have tested a csv which hat quotes around every field, like
“Actual Engine Torque”,”ActEngTorq”,”2149″,”(D * 256 + E) – 32768″,”0″,”150″,”Nm”,”7E0″
and it worked. How does this affect the argument of the VAL function? Writing
“VAL(“Drehm”)”
does not seem correct, what about
“VAL(\”Drehm\”)”
? Should I write these quotes also in the case, where not every field is enclosed by quotes, like:
VAL(\”Drehm\”)
? The problem is, it is difficult to test all this systematically as I have to drive the car to get a readout and if I don’t I don’t have an error message.
|