Hello AJ,
The 1 to 2 millisecond delay you're seeing is expected behavior on a computer that is running a non-deterministic operating system (such as Windows). When you call an instance of DAQmxRead LabVIEW tells the operating system to go pull the value from memory into the LabVIEW memory space--this takes a few milliseconds and the exact time is dependent on how busy the operating system is at the time. The usual way to deal with this issue is to use buffered data acquisition and take data points at regular intervals using hardware timing. Then even though the data retrieval is still uncertain your measurements are still taken at a known interval.
Here's the full path for one of the examples on my machine. (Note: the path on your machine may vary based on operating system and driver versions)
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Measure Digital Frequency\Dig Freq-Buff-Cont-Large Range 2 Ctr
I hope this helps get you started.
Have a great day!
Message Edited by Brooks_C on
04-02-2008 10:34 AM
Brooks