02-07-2006 10:46 PM
02-08-2006 02:39 AM
02-08-2006 02:46 AM
02-08-2006 08:04 AM
Thank you for the feedback.
I am sorry, I did miss showing the start task function, it is in there just before looping while reading.
stat = DAQmxStartTask( mytask );
My application supports probably 20 different NI cards, this being selected by the end user. The intent is that data is constantly being collected in the background while there is an entire script being run in the foreground. I cannot wait for data to be returned, I simply check if there is any data available, I check this between 10 to 100 times a second and provide the current input data to the foreground script.
I modified the sample program to not use triggers and it behaves the same way. About half of the time there is never any data available to the read function. I stop it and start again and there may or may not be data available.