Using Multiple PCAN USB FD Devices

The free CAN Software API (Application Programming Interface) for Windows®
Locked
LEFEVRJK
Posts: 4
Joined: Tue 23. Apr 2024, 02:51

Using Multiple PCAN USB FD Devices

Post by LEFEVRJK » Tue 23. Apr 2024, 02:59

I need to verify that a CAN FD message passes through hardware I'm testing. The hardware uses CAN FD controllers, and has two busses.
I currently have a Peak PCAN USB FD with one physical bus.

I assume I would either need a pro version, or to use two USB devices.

However, looking at the API, I'm not sure I could use two devices at once. (Specifically, the Initialize method takes a channel and a bitrate - so I'm not certain this allows me to specify which USB device if I'm using two - or if the API would handle multiple devices "under the hood" if that makes sense.)

Do I need to buy the pro hardware to do this, or will the API work with multiple USB devices?

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Using Multiple PCAN USB FD Devices

Post by M.Heidemann » Tue 23. Apr 2024, 09:00

Hello,

You can use two devices in PCANBasic, no problem.
You can set the device-ID (YOu can use PCAN-View for this) for each device to identfiy them
and use CAN_LookUpChannel to find the device based on its ID.

If you use more than one device you just call initialize as often
as devices are present.

Best Regards
---
Marvin Heidemann
PEAK-Support Team

LEFEVRJK
Posts: 4
Joined: Tue 23. Apr 2024, 02:51

Re: Using Multiple PCAN USB FD Devices

Post by LEFEVRJK » Tue 23. Apr 2024, 19:10

Thank you very much!

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Using Multiple PCAN USB FD Devices

Post by M.Heidemann » Wed 24. Apr 2024, 09:30

Glad we could help!

- closed -
---
Marvin Heidemann
PEAK-Support Team

Locked