Обнаружьте доступные устройства CAN и исследуйте канал устройства.
hw =
CAN Devices Detected
Vendor | Device | Channel | Serial Number | Constructor...
------------|----------------------------|---------|---------------|---------------
MathWorks | Virtual 1 | 1 | 0 |canChannel(...
MathWorks | Virtual 1 | 2 | 0 |canChannel(...
Kvaser | Virtual 1 | 1 | 0 |canChannel(...
Kvaser | Virtual 1 | 2 | 0 |canChannel(...
NI | Virtual (CAN256) | 1 | 0 |canChannel(...
NI | Virtual (CAN257) | 2 | 0 |canChannel(...
NI | Series 847X Sync USB (CAN0)| 1 | 12345C |canChannel(...
NI | 9862 CAN/HS (CAN1) | 1 | 12345A |canChannel(...
Vector | Virtual 1 | 1 | 0 |canChannel(...
Vector | Virtual 1 | 2 | 0 |canChannel(...
PEAK-System | PCAN-USB Pro (PCAN_USBBUS1)| 1 | 0 |canChannel(...
PEAK-System | PCAN-USB Pro (PCAN_USBBUS2)| 2 | 0 |canChannel(...
Просмотрите свойства Vector видеть его VendorDriverVersion
.
v =
VendorInfo with properties:
VendorName: 'Vector'
VendorDriverDescription: 'XL Driver Library'
VendorDriverVersion: '9000022'
ChannelInfo: [1×2 can.vector.ChannelInfo]
Просмотрите первую Векторную информацию о канале.
c1 =
ChannelInfo with properties:
Device: 'Virtual 1'
DeviceChannelIndex: 1
DeviceSerialNumber: 0
ObjectConstructor: 'canChannel('Vector','Virtual 1',1)'