Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i reset nidaq status codes, after +10846 code?

(sorry for my english) I use nidaq with hard real-time acquisistion in win2000, in double-buffered mode. Sometimes, my application, don't read the halfbuffer and 10846 code (is plus, is a warning) occur. After, every check of DAQ_DB_HalfReady return 10846 code, and i can't see if another failure in read occur. How can i reset the status code? Thanks, Piero.
0 Kudos
Message 1 of 2
(3,220 Views)
Search the Knowledge Base for the document titled "What Is the Difference between Data Acquisition Errors -10845 and -10846?" It will explain what the error is and how to correct it.

The status code is updated and returned after each function call in NI-DAQ. There is no function call to go in and clear the error condition in the DAQ device (this is an eror in the software buffer anyway, not the hardware, so NI-DAQ may actually be generating it, not a status bit on the card). If subsequent functions generate an error (or message) then you can ignore it or write a wrapper for whatever error handling routines you are using to clear the value of the status variable. Error handling is something you should handle in software; but, most people use the error handler in th
e examples folders.
0 Kudos
Message 2 of 2
(3,220 Views)