Why do I receive an NI-DAQ driver error when trying to read data using the Data Acquisition Toolbox?

4 views (last 30 days)
Why do I receive the error: "NI-DAQ: The driver wrote new data into the input transfer buffer before the previously acquired data was read." with the Data Acquisition Toolbox?
I am trying to read data from my National Instruments PCI-6111B and receive the following error message:
Error event occurred at 12:04:31 for the object: nidaq1-AI.
NI-DAQ: The driver wrote new data into the input transfer
buffer before the previously acquired data was read.
I used the NI MAX to check the board out and it passed all tests.
Before the script file was run, I rebooted the computer. I also performed a
get(ai)
to determine the state of the board.
What is causing the error and how I can capture it before I perform my test?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error message indicates that there was a buffer overwrite. You will need to check to be sure that your analoginput object is triggered.
Another possibility is that your TriggerConditionValue is being configured too high.
You can verify your triggering configuration by configuring the TriggerFcn to @daqcallback, which will display a message when a trigger occurs. If the overwrite error is only happening when no trigger occurs (i.e. when no trigger message is displayed), then you should try lowering the TriggerConditionValue and see if that helps.
Also try modifying the BufferingConfig property by specifying a larger buffer size be used. This might help the toolbox extract data a little faster.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!