Main Content

Stimulate Measurement Data via Dynamic STIM Lists

This example shows how to create a dynamic data stimulation list and assign measurements to the list events. You can stimulate data for specific measurements in this list.

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

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

Note

If your module is locked for STIM operations, configure the channel to unlock the server.

Create a STIM list for the '100ms' event with 'PWMFiltered'and 'Triangle' measurements.

createMeasurementList(xcpch,'STIM','100ms',{'PWMFiltered','Triangle'});

Start the measurement.

startMeasurement(xcpch)

Write 10 to the configured measurement list for the 'Triangle' measurement.

writeSTIMListData(xcpch,'Triangle',10);