Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Acquire Measurement Data via Dynamic DAQ Lists

This example shows how to can create a dynamic data acquisition list and assign measurements to the list. You can acquire data for measurements in this list from the slave.

Create an XCP channel linked to an A2L file and connect it to the slave.

a2lfile = xcpA2L('C:\work\XCPSIM.a2l');
xcpch = xcpChannel(a2lfile, 'CAN', 'Vector', 'Virtual 1', 1);
connect(xcpch)

Create a DAQ list for the '10 ms' event with ,'PWMFiltered'and 'Triangle' measurements.

createMeasurementList(xcpch, 'DAQ', '10 ms', {'PWMFiltered','Triangle'});

Start measurement activity.

startMeasurement(xcpch)

Read 10 samples of data from the configured measurement list for the 'Triangle' measurement.

readDAQListData(xcpch, 'Triangle', 10) 	
18   18   18   18   18   18   18   18   18   18
Was this topic helpful?