Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect encoder to counter?

I am trying to connect the encoder with A,B and Z phases to my counter(PC-TIO-10) to measure the angle that the rubbertuator rotates. The test panel of MAX counts the events but it does not give the same value as it rotates with the same angle. I connect A to the source input of the counter, ground to the ground and the gate is non-connection.
how must be the connections A,B,Z,ground,flame ground of the counter with the source,gate&ground of the counter? I also failed to read the counts through LabView. How can I manipulate the LabView samples to read?
0 Kudos
Message 1 of 5
(3,957 Views)
There is an example with a description for the connection at :
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/b41dec4dac8ce0c98625695b0051aa96?OpenDocument
0 Kudos
Message 2 of 5
(3,955 Views)
Hello;

The best way to go about that is by using a Labview example to get started.

If you type +labview +example +encoder in the search field of www.ni.com, the fifth result is exactly what you need.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,955 Views)
answer: did you connect the B-signal to the up_down (aux_line) line ?
Because otherwise the counter will count up when you turn your encoder in both directions ! This can explain different values for the same angle.
0 Kudos
Message 4 of 5
(3,955 Views)
Thanks, but my counter has no up_down line. So I solve the problem by using two counter, one for A and the other for B. I connect A to the 1st counter's source and the 2nd counter's gate, and B to the 1st counter's gate and 2nd counter's source. Now I can count up and down. But I have a new problem: Sometimes one of the counter starts with 655.. instead of zero and counts down.
0 Kudos
Message 5 of 5
(3,955 Views)