Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

"error:10009, counter is invalid" message keeps coming up

I used "Measured Frequency (NI-TIO).vi" to acquire data off of one channel of my 6602 board. This worked great, so I tried to acquire 3 channels of data and I keep getting error 10009. I've attachted my code; I'm not sure if I'm missing something simple or if I'm oversimplfing it. Any advice would be appreciated.
0 Kudos
Message 1 of 4
(3,646 Views)
Your program is incrementing the device number as you go through each measurement. If you only have one device, this will cause you to receive the 10009 error. Additionally, this frequency measurement VI uses two counters, so when you're using counter 0, counter 1 is being implicitly used. When you're selecting counter 1, counter 0 is implicitly used. The counters on a 6602 are paired (0/1, 2/3, 4/5, 6/7). It's possible that you'll get some "channel is already in use" errors due to this pairing. Also, you could possibly run into repeatability issues because there is no set sequence of execution. By that I mean you are not guaranteed which channel will measure first.

Hope this helps!
gus....
0 Kudos
Message 2 of 4
(3,646 Views)
Hi,

Gus makes a good point about the multiple counters.

Take a look at the following KB (1K1CMULL) for an explanation of the counter limitations of the 660x series of boards and suggestions to fix the error:

http://digital.ni.com/public.nsf/websearch/862567530005F09C86256747006C64D1?OpenDocument

I hope this helps,

Andrew A
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,646 Views)
Actually, the KB that I linked to is specific to Counter Groups which is not the problem that you're seeing.

Please disregard the link (unless you're curious).

The problem, as Gus explained, is probably caused by your program incrementing the device number for successive measurements.

Sorry for the confusion!

Andrew A
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,646 Views)