Read a Single Value

This example shows how to access a single value by name. The value is read directly from memory.

Create an XCP channel with access to an A2L file

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

Connect the slave.

connect(xcpch)

Read a single value of the Triangle measurement directly from memory.

readSingleValue(xcpch, 'Triangle')
ans =

    50
Was this topic helpful?