canFDChannel
Construct CAN FD channel connected to specified device
Description
returns a CAN FD channel connected to a device from a specified vendor.canch = canFDChannel(vendor,device,chanindex)
For Kvaser and Vector products, device is a character vector or
string that combines the device model and a device index in the same
argument, such as 'VN1610 1' or 'VN1610 2' to
distinguish one device from another. You can also choose among two MathWorks® virtual devices, each with two virtual channels.
returns a CAN FD channel connected to a National Instruments™ or PEAK-System device.canch = canFDChannel(vendor,device)
For National Instruments, vendor is the character vector 'NI',
and the devicenumber is the interface number defined in the NI
Measurement & Automation Explorer.
For PEAK-System devices vendor is the character vector
'PEAK-System', and devicenumber is the device number
defined for the channel.
Examples
Input Arguments
Output Arguments
Tips
Use
canFDChannelListto obtain a list of available device channels.You cannot have more than one CAN FD channel configured on the same NI-XNET or PEAK-System device channel.
You cannot use the same variable to create multiple channels sequentially. Clear any channel in use before using the same variable to construct a new channel object.
You cannot create arrays of channel objects. Each object you create must exist as its own individual variable.
Version History
Introduced in R2018b
See Also
Functions
canFDChannelList|start|stop|receive|transmit|replay|filterAllowAll|filterAllowOnly|filterBlockAll