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

72 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2023-11-21
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 个评论
Stefanie Schwarz
Stefanie Schwarz 2020-9-8
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:

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vehicle Network Toolbox 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by