Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?