I’m having a bit of trouble with successfully detecting the number of devices connected to my machine. I have a XEM3001v2 FPGA. Unless I misunderstand, it seems to behave like a bug. This is the code:
[CODE]okFrontPanelDLL_LoadLib(NULL); //returns 1
okCUsbFrontPanel *xem=new okCUsbFrontPanel();
xem->GetDeviceCount() // at this part of the code, the number of devices is successfully returned as 1
xem->GetDeviceListSerial(0); // this also successfully returns the serial of the device
//but after the following code is run
//the xem->GetDeviceCount() and xem->GetDeviceListSerial(0); return zero and null, respectively
My driver version is 188.8.131.52, okFrontPanelDLL.cpp is version 592, my system is 64 bit Win7. I can confirm that this behavior is present in multiple projects.
The issue happens as soon as I hit OpenBySerial. Why is this happening?
Thanks in advance.