Purpose

Reads a single scaled Measurement value from the ECU. Format

mcTypeStatus mcMeasurementRead(
mcTypeTaskRef RefNum,
char *MeasurementName,
f64 *Value);

Input

RefNum

ECURefNum is the task reference which links to the selected ECU. This reference is originally returned from .

MeasurementName

MeasurementName is the name of a Measurement channel stored in the A2L database file from which a Measurement value is to be read. Output

Value

Returns a single sample for the Measurement channel initialized in MeasurementName.

Return Value

The return value indicates the status of the function call as a signed 32-bit integer. Zero means the function executed successfully. A negative value specifies an error, which means the function did not perform the expected behavior. A positive value specifies a warning, which means the function performed as expected, but a condition arose that may require attention.

Use the function of the ECU M&C API to obtain a descriptive string for the return value.

Description

mcMeasurementRead performs a single point read (upload) of a single scaled Measurement from the selected ECU without opening a Measurement task.