05-10-2008 05:58 PM
05-12-2008 01:14 PM
Hi lemmik,
There is a timeout value associated with reading the data. Once you begin the reader the NI-DAQmx driver will wait for the data to be acquired for the duration of the timeout. If the data has not been acquired within the timeout the error you are seeing will be thrown. The default timeout value is 10 seconds. So if you run the program and the reference trigger has not occurred within ten seconds you will get a timeout error. Make sure you have specified the correct reference trigger source. If it is taking longer than 10 seconds for a trigger to happen then you can increase the timeout length. To increase the timeout length, add the following line to your code before you create the reader.
myTask.Stream.Timeout = readTimeout
Where readTimeout is the time in seconds that you want to set the timeout to. Please let me know if you have any questions and take care.
Thanks,