From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI 9205 or NI 9403 DIO module for encoder measurement

Hello,

 

Is it possible to measure angular position by counting pulses from a quadrature encoder using NI DIO 9403 or NI 9205 modules coupled with cDAQ 9174. I do not have access to other modules which have inbuilt counters. If possible, can someone please guide me on how to do that?

0 Kudos
Message 1 of 3
(1,686 Views)

What resolution do you need?

What device are you using?

 

I suggest you search for a "Quadrature Decoder Circuit" and couple that up to a suitable up/down counter with reset. An example is the 74HCT193; cascade as many of these 4 bit blocks as you need to get the number of bits you require. You can reset on the z input, from some limit switches or from a digital output from your 9403. The parallel lines from your counter go into digital inputs on the 9403.

 

Oh look someone has done it all for you here: http://mumris.eu/Decoder.htm .

Message 2 of 3
(1,629 Views)

Thank you so much @SteveD123.

 

I have tried counting the pulses using LabView but there was a huge lag. So, I have coupled with an Arduino and used interrupt program to count the pulses. Later, I have coupled it with a serial input program to access the counter value.

 

It worked fine for me. 

0 Kudos
Message 3 of 3
(1,618 Views)