Hi there. I'm a new user to NI-DAQ device.
Now I am developing a continuous AI sampling program for NI USB-6229.
The environment settings are 8 channels under 2kHz sampling frequency. In the program
I need to save the data to a csv file every once in a while, say, 500ms, through the "event"
mechanism. I tested that it takes about 32~48ms to write the data of 500ms.
This "event" seems like a software interrupt to me so I was wondering if the DAQ device
keeps recording new data while I perform the writing operation in the event?
Or put it in another way, when I configurate the sampling task with the function
"DAQmxCfgSampClkTiming", the parameter "sampsPerChanToAcquire" is described to
be used as a factor to determine the buffer size. Is this buffer the "AI FIFO" buffer referred
by the "M series user manual"? Does it mean if I set it to an appropriate value the data
will always go into this buffer first and then read by the computer, so if the transfer is fast
enough there would be no data loss?
Thank you in advance.