Page 1 of 1

Using Multiple PCAN USB FD Devices

Posted: Tue 23. Apr 2024, 02:59
by LEFEVRJK
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?

Re: Using Multiple PCAN USB FD Devices

Posted: Tue 23. Apr 2024, 09:00
by M.Heidemann
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

Re: Using Multiple PCAN USB FD Devices

Posted: Tue 23. Apr 2024, 19:10
by LEFEVRJK
Thank you very much!

Re: Using Multiple PCAN USB FD Devices

Posted: Wed 24. Apr 2024, 09:30
by M.Heidemann
Glad we could help!

- closed -