Connect XCP channel to slave module
Create an XCP channel connected to a Vector CAN device on a virtual channel and connect it.
Link an A2L file to use to create an XCP channel
a2lfile = xcpA2L('XCPSIM.a2l') xcpch = xcpChannel(a2lfile, 'CAN', 'Vector', 'Virtual 1', 1);
Connect the channel and see if channel is connected
connect (xcpch) isConnected(xcpch)
ans = 1