Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

error 10013 when using GPCTR_Control with ND_RESET

I am using two 6602 cards and a MIO E6035 in an PXI system. I program the counter and the MIO for bufferd operation and start the measurement. This works good.
Then I stop the actual measurement with DAQ_Clear for the MIO and GPCTR_Control with ND_RESET for each used counter on the 6602.
After a while I want so start a new measurement and do the same init again. The second time I often (not allways !!) get an error code 10013 (-10013 badErrorCodeError: The driver returned an unrecognized or unlisted error code) when I call ND_RESET.
Whe I get it once, I get it allways. WShen I stop my program and restart it, then the programming of the counters works aggain.
What can I do? Is there a command, so that I can init the
counter card completly?

I am using NI Daq 6.9.1.

Thanks
Stephan
0 Kudos
Message 1 of 3
(3,734 Views)
Stephan;

This error occur when the GPCTR_Control try to access the wrong DMA table for some counter. If you are using more than 3 counters at each counter board, make sure to have the extra counters to use IRQs to perform its operations. Otherwise you might make the GPCTR_Control to access the wrong table for one of the counters.
Hope this helps.
Filipe
0 Kudos
Message 2 of 3
(3,733 Views)

Hi,

I have the similar problem with 3 6602 board and 1 6220.

Do you know how to reset the boards ? My application does acquier continusly without restarting.

Thank's

0 Kudos
Message 3 of 3
(3,591 Views)