Significant Signal Output Lag Between DAQ Output and Program Output Using DAQmx Function

Updated Oct 15, 2021

Reported In


  • NI-DAQmx

Issue Details

I made a VI that generates and then outputs a customized signal continuously. The signal is output as an analog signal.
But when I use this program, the output signal on my DAQ device does not change immediately after I change the signal properties on the VI. The delay is around 8 seconds, and it doesn’t change between runs.
I am using a while loop around the DAQmx write function which keeps the DAQ device loaded with signals.
Why is this happening, and how can I reduce this output lag?


There are several possible reasons a DAQ device output can be delayed, but one possibility is the delay
caused by the buffer on the DAQ device combined with low sampling rate.

The buffer contains the signal to be output on a FIFO basis, this needs to be output at the specified sampling rate before the new signal can be output.
To elaborate, if the output buffer was 8192 samples, and the signal was written at 1000 S/s, there will be a
 8 second delay before the new signal is finally output.
One solution to reduce this lag is to increase the sampling rate (such as 100kHz) so that the data stored in the buffer does not take time to be output.