Why is my PEAK-System CAN device not detected in Vehicle Network Toolbox?

90 visualizaciones (últimos 30 días)
Why isn't my PEAK-System device detected by the "canChannelList" or "canHWInfo" functions in MATLAB, or using the CAN Configuration / CAN Receive / CAN Transmit blocks in Simulink?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 21 de Nov. de 2023
Editada: MathWorks Support Team el 21 de Nov. de 2023
To have the PEAK-System CAN device detected in MATLAB or Simulink you need to install the vendor device drivers and PCAN-Basic API DLL as described below.
The PEAK-System device would not be detected if:
  • The vendor PEAK-System CAN device drivers are not installed or are not configured properly during installation, or 
  • The vendor drivers installed the 32-bit version of PCAN-Basic API DLL instead of the 64-bit version.
Follow these steps to manually install the vendor drivers:
1. Navigate to "C:\Windows\System32" and look for "pcanbasic.dll" ( if there is no pcanbasic.dll, continue to step 2 ). Right-click on the DLL, and click on "Properties". On the Details tab, if the "File description" indicates that this is a 32-bit DLL, then delete this DLL. 
2. Uninstall any existing PEAK-Drivers from Windows Control Panel > Programs and Features
3. Go to the manufacturer's website, Downloads section to download the driver package:
https://www.peak-system.com/Drivers.523.0.html?&L=1
Click on "Device Driver Setup Windows" to download.
4. Extract the downloaded zip file.
5. Execute PeakOemDrv.exe, and during setup make sure the following options are checked/enabled:
- CAN device drivers
- PCAN-Basic
5. Reboot computer.
6. Connect the PEAK-System device.
7. Open vendor utility PCAN-View and confirm that the device is detected, then close PCAN-View.
8. Restart MATLAB and execute canChannelList to confirm that the device is detected.
Once the vendor drivers are installed, to use the PEAK-System CAN device with MATLAB or Simulink, note that:
  • You need to close the vendor app PCAN-View before MATLAB is started.
  • To have the PEAK-System CAN device detected in Simulink, the device needs to be plugged in before MATLAB is started.
  1 comentario
Stefanie Schwarz
Stefanie Schwarz el 8 de Sept. de 2020
Hello Peter,
we have just published an updated version of this tutorial. Would you mind going through it once again? If the device still doesn't get detected after that, please contact our Technical Support:

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by