Main Content

写入单个值

以下示例说明如何按名称写入单个值。该值直接写入内存。

创建链接到 A2L 文件的 XCP 通道。

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

连接服务器。

connect(xcpch)

写入单个值。

writeSingleValue(xcpch,'Triangle',50)