Main Content

connect

Connect XCP channel to server module

Description

example

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

Examples

collapse all

Create an XCP channel connected to a Vector CAN device on a virtual channel and connect it.

Link an A2L file to and create an XCP channel with it.

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

Connect the channel and verify that it is connected.

connect (xcpch)
isConnected(xcpch)
ans =

     1

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 server module defined by the A2L file.

Version History

Introduced in R2013a