Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

using a counter out and an encoder in

I have Counter 0 set up as a frequency source and would like to use counter 1 to read the position of an encoder using the A,B, and Z. I would like to use counter 1 independent of counter 0 and have it run off of the 100kHz reference clock.
 
The problem that I'm having is that the card won't let me do this because the resource is still in use. The message that I'm getting is as follows:
 
Possible reason(s):
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: SampClk.Src
Property: SampClk.ActiveEdge
Source Device: Dev1
Source Terminal: 100kHzTimebase
Required Resources in Use by
Task Name: _unnamedTask<21>
Source Device: Dev1
Source Terminal: 80MHzTimebase
Destination Device: Dev1
Destination Terminal: Ctr0Source
Task Name: _unnamedTask<25>
 
 
How can I resolve this problem?
0 Kudos
Message 1 of 2
(2,565 Views)

Hi Steve Block,

It seems as though the problem might lie only with your Counter0 task (Pulse Generation). Have you tried running the Counter tasks separately to see if it works? Can I also ask what device are you using?

From the error message you are getting, it looks like there may be a resource conflict with the way you have tried assigning the timebase on your Counter. I believe you are trying to route something on a line which has already been assigned. However, if you are simply trying to generate a 100 kHz digital pulse train from your counter, you can take a look at our LabVIEW shipping examples in Example FInder, in particular, Hardware Input and Output » DAQmx » Generating Digital Pulse » Gen Dig Pulse Train-Continuous.VI.

Hope this helps,

S_Hong

S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,548 Views)