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

22 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 21 Nov 2023
Modifié(e) : MathWorks Support Team le 21 Nov 2023
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://www.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.

Plus de réponses (0)

Catégories

En savoir plus sur Vehicle Network Toolbox dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by