i have written a program in c which polls the digital inputs every 20ms
...
Code: Select all
UsbDrDaqGetInput(g_handle, 1, 0, &value1);
UsbDrDaqGetInput(g_handle, 2, 0, &value2);
UsbDrDaqGetInput(g_handle, 3, 0, &value3);
do some checks
Sleep(20);
this works fine but after a time, sometimes 1min sometimes 30min it crashes with returning 255.
I have reduced the program only to the loop above but it did not help.
is there any timelimit of polling the inputs?
greetings from germany