To have the Kvaser CAN device detected in MATLAB or Simulink you need to install the vendor device driver library as described below.
Follow these steps to install/reinstall/update the vendor drivers on Windows:
1. Unplug your Kvaser device and close MATLAB
2. Uninstall any existing Kvaser CAN Drivers and Kvaser CANLIB SDK from Windows Control Panel > Programs and Features
- "Kvaser Drivers for Windows" (kvaser_drivers_setup.exe)
4. Execute kvaser_drivers_setup.exe, which installs the Kvaser device drivers and Kvaser CANlib library
5. Reboot your computer
6. Plug in your Kvaser device
7. Start MATLAB and execute canChannelList to detect your device.
Once the vendor drivers are installed, to use the Kvaser device with MATLAB or Simulink, note that:
- You need to close other apps accessing the device before MATLAB is started.
- To have the Kvaser CAN device detected in Simulink, the device needs to be plugged in before MATLAB is started.