A MEASUREMENT object describes an ECU internal variable (a live computed value, not a calibration parameter) that the calibration tool reads directly from ECU RAM via XCP. It is declared read-only — the tool cannot write to it, only sample it via DAQ.
/begin MEASUREMENT
lambda_actual /* internal variable name */
"Measured lambda from wideband sensor"
FLOAT32_IEEE /* data type in ECU RAM */
CM_LAMBDA /* COMPU_METHOD: IDENTICAL (raw IS physical for float) */
1 /* resolution (1 LSB per unit) */
0.001 /* accuracy */
0.5 /* LOWER_DISPLAY_LIMIT */
2.0 /* UPPER_DISPLAY_LIMIT */
ECU_ADDRESS 0x20004A80 /* address of live variable in RAM */
/end MEASUREMENT| ECU RAM Variable | A2L DATATYPE | COMPU_METHOD | Physical Interpretation |
|---|---|---|---|
| uint8 engine_load_pct | UBYTE | LINEAR: phys = 0.4×raw | 0–100% load from 0–255 raw |
| int16 coolant_temp_raw | SWORD | LINEAR: phys = 0.1×raw − 40 | −40 to +215°C |
| float32 lambda_actual | FLOAT32_IEEE | IDENTICAL | Direct float value, already physical |
| uint16 engine_rpm | UWORD | LINEAR: phys = 0.25×raw | 0–16383 rpm |