Hi Gajanan,
There are a few buffers that are configured during DAQ tasks. One is located on your PC's memory and one is the FIFO on your DAQ board. The PC buffer is the buffer that we configure programtically in each of the tasks and is dependent on the sampling rate and number of samples to read.
Many times users want to clear the onboard FIFO because after a task is cleared the card is still outputing the last value given to it. This is because the user hasn't told it to change the card's output to something else but rather just told the task to stop. The card will hold this output unless otherwise told.
If this is the case, simply write a value before clearing the task to set the output to what you wish. There is no function that simply flushes the memory of the FIFO but you can overwrite the buffer (which DAQmx does automatically if you stop or pause and then start a task) with new data. Please refer to
this forum post with some more information about this programming technique.
I hope this helps,
Message Edited by Patrick_Ba on
02-11-2008 06:43 PM
PBear
NI RF