Read single sample of specified measurement from memory
value = readSingleValue(xcpch,'measurementName')
Read a single value from a
Create an object to parse an A2L file and connect that to an XCP channel.
a2lfile = xcpA2L('XCPSIM.a2l') xcpch = xcpChannel(a2lfile, 'CAN', 'Vector', 'Virtual 1', 1);
Connect the channel to the slave module.
Acquire data for the
value = readSingleValue(xcpch, 'Triangle')
value = 14
measurementName— Name of single XCP measurement
Name of a single XCP measurement specified as a character vector or
string. Make sure
measurementName matches the
corresponding measurement name defined in your A2L file.