I made a decision to update my design in order to use the new version of the UDK (move from UDK2 to UDK3). Normally I use LabView to develop my applications, the process to call functions from a dll in LabView is well known and easy to use. In fact the new versions of LabView implement a tool that from a C include file is possible to generate all the VIs of the functions exported in a dll.
I am able to use my old code written in LabView if I mix the two version of UDK, this mean if I install the new driver from UDK3 (udk3-usb-driver-windows-1.1.exe) and continue to using the old version of the dll (udkapic_vc10_x86.dll , this dll came from the UDK2.0.0) I do not have any problem.
This is a solution but is not the optimal solution. I want to use only the UDK 3 libraries.
My problem began when I call the function CeEnumerate (I already call the CeInit) this function return the number of devices connected but in my case when I call it always get 0 devices. In the UDK2 to obtain the number of devices is necessary to call two functions Enumerate and GetDeviceCount , doing this I get, in the same condition, the correct number of connected devices.
1- Equivalent sequence in c to UDK2
CE_RESULT CE_EXPORT Init();
CE_RESULT CE_EXPORT Enumerate(unsigned int DeviceType);
CE_RESULT CE_EXPORT GetDeviceCount(unsigned int *puiCount);
2- Equivalent sequence in c to UDK3
CE_RESULT CE_EXPORT CeInit();
CE_RESULT CE_EXPORT CeEnumerate(int deviceType, int *count);
Where the problem can be.
I am able to use my old code written in LabView if I mix the two version of UDK, this mean if I install the new driver from UDK3 (udk3-usb-driver-windows-1.1.exe) and continue to using the old version of the dll (udkapic_vc10_x86.dll , this dll came from the UDK2.0.0) I do not have any problem.
This is a solution but is not the optimal solution. I want to use only the UDK 3 libraries.
My problem began when I call the function CeEnumerate (I already call the CeInit) this function return the number of devices connected but in my case when I call it always get 0 devices. In the UDK2 to obtain the number of devices is necessary to call two functions Enumerate and GetDeviceCount , doing this I get, in the same condition, the correct number of connected devices.
1- Equivalent sequence in c to UDK2
CE_RESULT CE_EXPORT Init();
CE_RESULT CE_EXPORT Enumerate(unsigned int DeviceType);
CE_RESULT CE_EXPORT GetDeviceCount(unsigned int *puiCount);
2- Equivalent sequence in c to UDK3
CE_RESULT CE_EXPORT CeInit();
CE_RESULT CE_EXPORT CeEnumerate(int deviceType, int *count);
Where the problem can be.
The post was edited 3 times, last by artechedi ().