Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

photon counting, buffering, DMA, and error Error -200141

Hello. 

I looked at your code and would recommend a slightly different approach on the error handling.  Just before reaching the case structure, use an unbundle VI.  This will split the error cluster into three parts: a boolean (is there an error), numeric (the error code), string (the error message).  Feed the numeric into the case selector terminal and only "catch" the error that results from the FIFO overflow on the counter.  This should prevent the array from being populated. 

In terms of when the error happens, you will need to reset the task.  This will take some time, but this is a necessary step to start acquiring data again. 

Brian F
Applications Engineer
National Instruments

0 Kudos
Message 11 of 11
(1,500 Views)