Read and scale specified measurement value from direct memory
Read the value from an XCP channel measurement, identifying the measurement by name.
a2lObj = xcpA2L('myA2Lfile.a2l'); chanObj = xcpChannel(a2lObj,'CAN','Vector','Virtual 1',1); connect(chanObj); value = readMeasurement(chanObj,'limit')
Alternatively, create a measurement object and read its value.
measObj = a2lObj.MeasurementInfo('limit'); value = readMeasurement(chanObj,measObj)
chanObj— XCP channel
XCP channel, specified as an XCP channel object.
measurement— XCP channel measurement
XCP channel measurement, specified as a character vector or measurement object.
value— Value from measurement read
Value from measurement read, returned as a type supported by the measurement.