Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

scan too fast, warning 10846

I am developing an application in Visual C++ using an AT-AO-10 and scanning
data using a double buffer configuration.
I am currently using NI-DAQ software version 6.6 and I allways get an error
messagge the FIRST time I try to scan the data using DAQ_DB_Transfer saying
that the driver wrote new data into the input transfer buffer before the
previously acquiered data was read (warning 10846).
If I run the program again things work perfect. I tryed to fix it using DAQ_DB_HalfReady
but I got the same results.
Is it a bug of the NI-DAQ, am I doing something wrong?

Thank you.
0 Kudos
Message 1 of 2
(2,668 Views)
Make sure you run the DAQ_Clear() function whenever your application terminates.
I've had similar experience when I didn't do this, or when I aborted a program
without exiting it normally. If you don't call DAQ_Clear(), the DAQ card
may not be cleared and ready to start running the application over again.
It sounds like it works for you sometimes, so check that you call DAQ_Clear()
through every path by which your program code may terminate ('Quit' button,
error handler, ...)

Dave

"Gorka Garcia" wrote:
>>I am developing an application in Visual C++ using an AT-AO-10 and scanning>data
using a double buffer configuration.>I am currently using NI-DAQ software
version 6.6 and I allways get an error>messagge the FIRST time I try to scan
the data
using DAQ_DB_Transfer saying>that the driver wrote new data into
the input transfer buffer before the>previously acquiered data was read (warning
10846).>If I run the program again things work perfect. I tryed to fix it
using DAQ_DB_HalfReady>but I got the same results.>Is it a bug of the NI-DAQ,
am I doing something wrong?>>Thank you.
0 Kudos
Message 2 of 2
(2,668 Views)