10-20-2013 09:45 PM
I am testing a simple analog data acquisition VI using the USB-6008 device, which is a low cost multii-function device (analog in, analog out, etc) with a USB connection. When I run the attached VI it works fine if the total sampling time is ubder 10 seconds (i.e. if Number of Samples per Channel/Sampling Rate <=10 s). When the total sampling time exceeds 10 s, I get error -200284. Combninations that work include 10K samples/channel and sampling rate=1 kHz (total time=10 s) and lower rates and numbers of samples, as long as total acquistion time <=10 s. But if rate=20 and number of samples=250 (i.e. 12.5 s) or if rate=1kHz and number of samples/channel=11000 (i.e. time=11 s) then I get error -200284.
Snapshots of block diagram and front panel attached.
Why? Assistance appreciated. Thank you.
Bill
P.S. Full error message is "Error -200284 occurred at dataacq_simpleexample.vi. Possible reason(s): Some or all of the samples requested have not yet been acquired. To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger, make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock."
P.P.S.
The 10 s "limit" applies whether the number of channels collected is 1 or 2. The limit also applies if the data is collected as "Unscaled" (U16) or scaled (DBL).
Adding a sequence structure contianing a wait, and running the task and data arrray signals lines through the sequence with the wait, with wait time=expected data acq time, did not fix the problem.
Solved! Go to Solution.
10-20-2013 10:30 PM
It tells you have a timeout error.
Turn on context help and hover over the DAQmx read function. You see it has a timeout input. The default value is 10 seconds which you can find out by right-clicking on the timeout terminal and picking create constant, or by opening up detailed up and reading about the DAQmx read function.
Since you are collecting 250 samples at a rate of 20, that takes 12.5 seconds, thus longer than the default timeout.
10-21-2013 01:42 PM
Thank you RavensFan for helping me out (again!).