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

94 views (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 21 Nov 2023
Edited: MathWorks Support Team on 21 Nov 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 Comment
Stefanie Schwarz
Stefanie Schwarz on 8 Sep 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:

Sign in to comment.

More Answers (0)

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!