Identifying PCAN USB FD devices

This forum covers issues concerning multiple hardware products.
Locked
kkregger
Posts: 7
Joined: Tue 25. Jul 2017, 00:49

Identifying PCAN USB FD devices

Post by kkregger » Mon 4. Nov 2019, 23:58

I have a mix of PCAN USB and PCAN USB FD devices connected to my system. Is there a way for my software (C#, PCAN BASIC) to determine whether a given device is an FD device or not?

K.Wagner
Software Development
Software Development
Posts: 768
Joined: Wed 22. Sep 2010, 13:36

Re: Identifying PCAN USB FD devices

Post by K.Wagner » Tue 5. Nov 2019, 08:21

Hello,

yes. You can use the parameter PCAN_CHANNEL_FEATURES with the function CAN_GetValue, to check weather a PCAN-Channel is FD capable or not. This is described in the PDF documentation "PCAN - Parameters" at page 20, and also in the CHM file (a.k.a. online help) "PCANBasic_enu.chm" in chapter "Refrence\Types\TPCANParameter\PCAN_CHANNEL_FEATURES".

This parameter is also used in the companion samples of PCAN-Basic, so you can check the code too.
Attachments
PCAN_CHANNEL_FEATURES
PCAN_CHANNEL_FEATURES
PCANBasicSample.PNG (37.5 KiB) Viewed 2444 times
Best regards,
Keneth

kkregger
Posts: 7
Joined: Tue 25. Jul 2017, 00:49

Re: Identifying PCAN USB FD devices

Post by kkregger » Tue 5. Nov 2019, 22:37

Hi,

will I have to initialize the device to get the value?
If I use Initialize rather than InitializeFD will I still be able to get the necessary information?

K.Wagner
Software Development
Software Development
Posts: 768
Joined: Wed 22. Sep 2010, 13:36

Re: Identifying PCAN USB FD devices

Post by K.Wagner » Wed 6. Nov 2019, 08:13

Hello,

please check the help file. There is all information you need to know. I already gave you the page number.
Best regards,
Keneth

Locked