Why is my Kvaser CAN device not detected in Vehicle Network Toolbox?

21 views (last 30 days)
Why isn't my Kvaser CAN device detected by the "canChannelList" or "canHWInfo" functions in MATLAB, or using the CAN Configuration / CAN Receive / CAN Transmit blocks in Simulink?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 May 2024
Edited: MathWorks Support Team on 28 May 2024
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
3. Open a web browser and go to https://kvaser.com/download/ and download the following:
  • "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.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!