j1939Ch = j1939Channel(database,'vendor','device') creates
a J1939 channel connected to the specified CAN device. Use this syntax
for National Instruments™ and PEAK-System devices, which do not
require a channel index argument.
j1939Ch = j1939Channel(database,'vendor','device',chanIndex) creates
a J1939 CAN channel connected to the specified CAN device and channel
index. Use this syntax for Vector and Kvaser devices that support
a channel index specifier.
vendor — Name of device vendor 'Vector' | 'NI' | 'Kvaser' | 'Peak-System'
Name of device vendor, specified as a character vector or string.
Example: 'Vector'
Data Types: char | string
device — Name of CAN device char vector | string
Name of CAN device attached to the J1939 CAN channel, specified as a character vector or
string.
For Kvaser and Vector products, device is
a combination of the device type and a device index. For example,
a Kvaser device might be 'USBcanProfessional
1'; if you have two Vector CANcardXL devices, device can
be 'CANcardXL 1' or 'CANcardXL 2'.
For National Instruments devices the devicenumber
is the interface number defined in the NI Measurement & Automation
Explorer.
For PEAK-System devices the devicenumber is
the alphanumeric device number defined for the channel.
Example: 'Virtual 1'
Data Types: char | string
chanIndex — Channel number of CAN device numeric
Channel number of the CAN device attached to the J1939 CAN channel,
specified as a numeric value. Use this argument with Kvaser and Vector
devices.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.