LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rotary Encoders

Dear sir/madam,

 

ggregson_1-1586081725640.jpeg

 


I have a problem setting up counters using the NIcDAQ9174 and MAX. I have defined a task GIB3DPitchEncoder which contains no channels as per the screenshot above.
The problem comes when I run the sub-vi below copied from NIs example.

ggregson_2-1586081725670.jpeg

 

I get the error msg as follows:
Possible reason(s):

Requested multiple virtual channels that correspond to the same physical channel within a task. A task cannot contain multiple physical channels of a specified type.

Use different physical channels for each virtual channel.

Channel Name: CountEdges

Physical Channel: _ctr0

Channel Name: cDAQSMod3/ctr0

Physical Channel: _ctr0

Task Name: GIB3DPitchEncoder

MAX sems to persist whatever channel name I delete last from the task.

I am using LabVIEW 2013 with a virtual configuration in advance of receiving hardware. My final configuration will be as follows. With the first 9401 performing digital output and the second 9401 serving two angular encoder inputs via ctr0 and ctr1.

ggregson_3-1586081826217.png

 

0 Kudos
Message 1 of 2
(1,829 Views)

Hi ggregson,

 

The easiest solution is probably to delete the MAX tasks and do the coding directly in LabVIEW.

Which things are you using MAX to configure? It looks like you're doing (at least) most of the work in LabVIEW already, so any confusion being caused by MAX is probably without significant benefit.

 

If you only want the Task to have a name, you can add "DAQmx Create Task" before the Virtual Channels node.


GCentral
0 Kudos
Message 2 of 2
(1,767 Views)