I would definetely agree with Joe that your best bet is to do your
processing outside of the while loop and use the "Intermediate" DAQ
VIs (AI Config, AI Start, AI Read, and AI Clear) with ONLY AI Read.vi
inside of the while loop.  For a good example of using these VIs,
please refer to the LabVIEW shipping example entitled "Cont Acq &
Graph (buffered).vi."  In general, set your buffer size to 10x the
number of samples to read at one time.  For example if you acquire
data at a scan rate of 100 KHz and read in data 10,000 pts at a time
then you want a buffer size of 100,000 and your while loop will take
about 100 ms to run (10x per second)...  You can not use DAQmx (DAQ
Assistant) with the 6120 board as it is not yet supported (coming
soon) ;-)

Good Luck!

Sincerely,

Brooks B
Applications Engineering
National Instruments

Reply via email to