Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LoLa_4657001
Level 1
Level 1

Hi,

I am trying to develop code in C++ with an FX3 USB Controller.

I started with example applications included in the SDK.

Unfortunately only the applications (Streamer, Control Center) coded in C# do work, within the C++ applications I am not able to detect a connected USB device.

I tried both, just executing the .exe file as provided in the SDK and also recompiled it on my Computer. I am using Windows 10 Enterprise and Visual Studio 2017.

I tried to develop my own C++ application and found out that DeviceCount returns zero although a device is connected.

Any suggestions what could be the problem?

Thanks a lot!

Regards,

Lou

0 Likes
1 Solution

I think I know what the problem is; unfortunately I can not test it until thursday.

I installed the driver that came with the Demo 3 board, which is using another GUID.

The C# version of the code uses 'USBDeviceList' which does not require a GUID.

The C++ version uses 'CCyUSBDevice' which requires a GUID (and uses the standard GUID if none is provieded).

I now replaced 'CYUSBDRV_GUID' with the GUID provided in my 'cyusb3.inf' file as described in the API documentation.

Hope it works now!

I will test as soon as possible and give feedback.

View solution in original post

0 Likes
6 Replies