xcpChannel
Create XCP channel
Syntax
Description
creates a channel connected to the CAN bus via the specified vendor and device, using the
specified xcpch
= xcpChannel(a2lFile
,CANProtocol
,vendor
,deviceID
)CANProtocol
of "CAN"
or "CAN
FD"
. The XCP channel accesses the server module via the CAN bus, parsing the
attached A2L file.
Use this syntax for vendor "PEAK-System"
or "NI"
.
With NI™ CAN devices, the deviceID
argument must include the
interface number defined for the channel in the NI Measurement & Automation
Explorer.
Note: XCP over CAN FD is not supported for PEAK-System devices.
creates a channel for the vendor xcpch
= xcpChannel(a2lFile
,CANProtocol
,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
)
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")
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2013a