canChannel
Construct CAN channel connected to specified device
Syntax
Description
canch = canChannel(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.
canch = canChannel(vendor,device)
For National Instruments, vendor is the character vector
                    'NI', and the devicenumber is interface
                number defined in the NI Measurement & Automation Explorer.
For PEAK-System devices vendor is the character vector
                    'PEAK-System', and the devicenumber is
                device number defined for the channel.
Examples
Input Arguments
Output Arguments
Tips
- Use - canChannelListto obtain a list of available devices.
- You cannot have more than one - canChannelconfigured 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 CAN channel. 
- You cannot create arrays of CAN channel objects. Each object you create must exist as its own individual variable. 
Version History
Introduced in R2009a
See Also
Functions
- canChannelList|- start|- stop|- receive|- transmit|- replay|- filterAllowAll|- filterAllowOnly|- filterBlockAll|- canFDChannel