01-15-2013 01:19 PM
Hello all -
I'm looking for some help with a USB-6341 X Series DAQ. I am trying to acquire N samples at a specified sampling rate, using a very basic Labview 2012 interface on a Windows 7 machine - the front panel is a waveform graph, and the block diagram is the DAQ Assistant wired to the graph (I change the number of samples and sample rate in the DAQ Assistant interface). If I choose number of samples and sampling rates that multiply out to 10 seconds or less, I have no issues. 10 samples, 1 Hz? OK! 10K samples, 1K hz? No sweat!
If I pick a number of samples and rate pair that works out to longer than 10 seconds? Error 200284, "Some or all of the samples requested have not yet been acquired."
Continuous acquisition in Labview, or looking at the test panels, shows no problems. The displayed voltage works out with the digital display on the instrument I'm sampling, so other than not taking data for longer than 10 seconds, everything seems to work.
Any thoughts on a problem source or fix?
Any help will be appreciated.
John
Solved! Go to Solution.
01-15-2013 01:22 PM
Additional Timing Settings under the "Advanced Timing" tab and increase the timeout...
01-15-2013 01:33 PM
Doing all of the acquisition at once and changing the timeout will make your user interface unresponsive so I prefer to set the number of samples to equal or less than the sample rate and just loop the DAQmx Read x number of times.
01-15-2013 02:06 PM
Thanks for pointing that out - I missed it while pulling my hair out! It worked very well.
John