Read scaled samples of specified measurement from DAQ list
Create an XCP channel connected to a Vector CAN device on a virtual channel. Set up a DAQ measurement list and acquire 10 data values, then all data.
a2lObj = xcpA2L('myFile.a2l'); channelObj = xcpChannel(a2lObj,'CAN','Vector','CANcaseXL 1',1); connect(channelObj); createMeasurementList(channelObj,'DAQ','Event1','Measurement1'); startMeasurement(channelObj); data = readDAQ(channelObj,'Measurement1',10); data_all = readDAQ(channelObj,'Measurement1');
measurementName— Name of single XCP measurement
Name of a single XCP measurement specified as a character vector or string. Make
measurementName matches the corresponding measurement name
defined in your A2L file.
count— Number of samples to read
Number of samples to read, specified as a numeric value, for the specified measurement name. If the number of samples in the measurement is less than the specified count, only the available number of samples are returned.
value— Values from specified measurement
Values from the specified measurement, returned as a numeric array.