This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Connect XCP channel to slave module





connect(xcpch) creates an active connection between the XCP channel and the slave module, enabling active messaging between the channel and the slave.


collapse all

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)
ans =


Input Arguments

collapse all

XCP channel, specified as an XCP channel object created using xcpChannel. The XCP channel object can then communicate with the specified slave module defined by the A2L file.

See Also


Introduced in R2013a

Was this topic helpful?