Hi Help Me,
The error you are seeing means that you are not pulling data off the buffer fast enough and it is getting overwritten by new data coming in from the DAQ card.
To avoid this situation there are several things you can do.
- Remove signal processing from your main loop and do it after the loop is done or use a producer consumer loop to have the signal processing take up less processing power therefore perform the acquisition faster.
- Slow down your acquisition rate so that you application can pull off the data from the buffer either as fast or faster than the DAQ card is putting data on the buffer.
- Increase your buffer size (this will probably just make the error take longer to show up so it is not the suggested method)
Here is a knowledgebase article that can help explain why that error would show up:
(DAQmx) Error - 200279 During a Continuous, Buffered AcquisitionIf you have any questions about how to implement these methods, please let me know.
Thank You,
Nick F.
Applications Engineer