11-23-2007 06:16 AM
In the past, I have configured the DAQ Assistant express VI to acquire 1 sample on demand within a while loop, and by using a time delay I have managed to roughly control the sampling rate. I do understand that I am not able to have precise control of the sampling rate because I am relying on the operating system's clock.
To achieve more accurate sampling, I am told that I should use either the "N Samples" or "Continuous" Acquisition Mode, but I am rather confused about the difference between the two when configuring a DAQ Assistant and using it within a while loop. How are these two modes different? Also, should I avoid using a time delay within the while loop?
11-23-2007 08:03 AM
Hi,
Continous samples acquisition mode means that you acquire N samples (the number of samples control) at the sample rate you specify. Say that you have specified to sample 1 kS at 1 kHz and you have placed it in a while loop. The DAQ Assistent would then execute during a second since 1 kS/1 kHz = 1 s and generate 1000 samples each iteration. The loop is by doing this timed by your acquisition and not in software. Including a wait in your loop with mean a loop time > 1 s and a break in your acquisition.
The only difference between the N samples acquisition mode and continous mode is the while loop. If you remove if from the above example only 1000 samples will be acquired.
Hope it helped,
11-26-2007 11:40 AM
11-26-2007 12:29 PM