Create XCP channel
creates a channel connected to the CAN bus via the specified vendor and device. The XCP
channel accesses the slave module via the CAN bus, parsing the attached A2L file.xcpch
= xcpChannel(a2lFile
,'CAN',vendor
,deviceID
)
Use this syntax for vendor 'PEAK-System'
or 'NI'
.
With National Instruments™ CAN devices, the deviceID
argument must include the
interface number defined for the channel in the NI Measurement & Automation
Explorer.
creates a channel for the vendor xcpch
= xcpChannel(a2lFile
,'CAN',vendor
,deviceID
,deviceChannelIndex
)'Vector'
, 'Kvaser'
,
or 'MathWorks'
. Specify a numeric deviceChannelIndex
for the channel.
or
xcpch
= xcpChannel(a2lFile
,'TCP',IPAddr
,portNmbr
)
creates an XCP channel connected via Ethernet using TCP or UDP on the specified IP address
and port. xcpch
= xcpChannel(a2lFile
,'UDP',IPAddr
,portNmbr
)
Note
XCP communication over UDP or TCP assumes a generic Ethernet adaptor. It is not supported on Ethernet connections of devices from specific vendors.
and
xcpch
= xcpChannel(a2lFile
,'TCP')
use the IP address and port number defined in the A2L file.xcpch
= xcpChannel(a2lFile
,'UDP')