Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Functions Slow

Single point daq reads seem to be very slow. I am using NiDAQ V 6.9. Using a high speed counter in a for loop I came up with the following times:

io_error = AI_Read (1, 0, 1, &_tmp1); // 120 usec
io_error = AI_Read (1, 1, 1, &_tmp1); // 180 usec (the input channel was changed)
io_error = ICTR_Read (1, 0, &fast_tick_end); // 50 usec

The documentation indicates the analog conversion should take 10usec, and I expect there will be additional delay for settling when switching analog channels. But these times seem extreme. Even reading the counter (ICTR_Read) takes 50 usec.

I need to use a single point read because my system needs to set a digital output, then take one reading, set another digital output, then take a reading, ...

An
y ideas on what I can do to improve this? Thanks in advance for your help.

Tom W
0 Kudos
Message 1 of 2
(2,547 Views)
Tom,
If your board is supported, try NI-DAQmx 7.0. There have been significant improvements in Single Point Acquisitions over NI-DAQ 6.9.3. and Traditional NI-DAQ 7.0. Alternatively, you may want to try Scan_Setup and AI_Read_Scan. I haven't tested this by hand, but it may be faster. Hope this helps.
Message 2 of 2
(2,547 Views)