Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

how to wire VI for 2 encoders using NI9401

Solved!
Go to solution

I have the attached vi that measures period.  My understanding is that the NI 9401 can measure period for up to 4 encoders at once.  Do I need one DAQ sequence per encoder, (e.g. the attached vi should measure period for 2 encoders simultaneously)?  I want to run up to 16 encoders, so, do I need to copy/paste this code 16 times in order to collect period data for 16 encoders simultaneously?

 

I am using cDAQ9174 and NI 9401.  My understanding is that the 9401 can measure up to 4 encoder signals.  If I put a second NI 9401 into the cDAQ9174, can I measure 8, or does the cDAQ9174 limit the number of counters that can be accessed independently?  If I have to use two cDAQ9174's, plugged into one PC, does Labview recognize the eight slots as unique, e.g. 1-8, instead of two sets of 1-4 for the addressing of the channels? 

 

Any generic advice on measuring many encoders (period) simultaneously is welcome.

 

Thanks,

Dave

 

0 Kudos
Message 1 of 4
(6,313 Views)
Solution
Accepted by topic author dav2010

-          Even if you put two NI 9401 into the cDAQ-9174, remember that the counters are in the chassis and this device just has four counters.

-          You can run counter tasks in parallel.

-          If you plug two cDAQ-9174, MAX recognizes two different devices.

 

Regards

0 Kudos
Message 2 of 4
(6,296 Views)

If I want to run a lot of encoders eventually, like 12-16, is there some other piece of hardware, or do I need to buy 4 cDAQ9174's?

Thanks

0 Kudos
Message 3 of 4
(6,290 Views)

There are other kind of modules dedicated for counter tasks like PXI-cards, but using cDAQ-chassis the maximum value per chassis is 4 counters.

 

Regards

0 Kudos
Message 4 of 4
(6,287 Views)