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.
Read a single value of the Triangle measurement directly from memory.
ans = 50