Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

COUNTER PROBLEM: ERROR -50103

Hello There,
 
OK. I am really going nuts using PCI-6229 counters. I have written ONE program, using TWO NI examples; i) Gen Dig Pulse Train-Finite.vi and ii) Count Digital Events.vi
 
basically, I want to generate a pulse using ctr0 output pin and count the events on another pulse using ctr1 source pin. But once I run the program I get the ERROR -50103
and the message says:
 
possible reason:
 
The specified resource is reserved. The operation could not be completed as specified.
 
Can some one please tell me what I am doing wrong?
I am using two counters in ONE program but for two different purposes. Is this a problem?! My program (that is basically two NI examples) is attached for reference.
 
thanks,
-A
0 Kudos
Message 1 of 3
(3,093 Views)

The problem is that when you configure a finite pulse train, the driver actually uses both counters to implement it.  That's why it isn't available to count edges.

Try the "continuous pulse train" example instead -- then your other counter will be free to count its edges.

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(3,080 Views)

Hi Aida,

I agree with Kevin's analysis.  If you look at your example documentation for the finite counter generation, you'll see that the hardware specifications require two counters for that example.   Generally, the continuous counter examples only require one.

Great advice Kevin, and I hope that this sheds some more light on your situation. 

Regards,

Daniel L.
Applications Engineer
National Instruments

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