Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Quadrature Encoders and a NI6601 Card

We need to measure the rotation direction and speed of a rotating shaft in both directions (+ve and -ve) and we are unsure of where the encoder lines should be wired.
0 Kudos
Message 1 of 2
(3,324 Views)
Hello Bill Stonier,

Thank you for contacting National Instruments.

How are you reading your measurements? Are you using LabVIEW? If so, what version are you using?

You can measure rotational speed and direction in LabVIEW by using two different counters with different DAQmx tasks. In Measurement and Automation Explorer (MAX) set up one task/counter for edge counting (up and down) and the other task/counter for frequency measurement. You must have LabVIEW 7.0 to take advantage of DAQmx.

For edge counting (up and down) you must wire the A pulse output from your encoder to the source of your counter. B gets wired to the counter gate.

For frequency measurement, wire the A output to the gate of your second counter. The source will be internal
ly wired to a pulse train of a known frequency.

To determine direction of rotation, a case structure is used which outputs positive velocity for counter-clockwise rotation and negative velocity for clockwise rotation.

See the attached example VI.

I hope this helps.

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,324 Views)