LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help regarding Labivew programming to monitor the encoder direction.

Need help regarding Labivew programming to monitor the encoder direction.
For example : If Incremental encoder is rotated to clockwise it should increasing count and when rotated in anti clockwise it should be decreasing count value.
Thanks a lot for any suggestion in advance.

0 Kudos
Message 1 of 4
(2,740 Views)
hi,

maybe, you should tell us which hardware you are using for acquiring the signal from the encoder.....

Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,736 Views)
Hardware is NI PCI-card 6014 and Labview7.1 software for data acquisition.
I think as the output voltage from encoder is 5 V, there should be no problem to connect direct to the PC via PCI card.
I can read the pulse in the form of counts, but to my dismay i cannot get decreasing count with anti clockwise rotation.
The incremental encoder which i am using is 5000 PPR, with Totem pole output.
0 Kudos
Message 3 of 4
(2,720 Views)
hi,

please post your question regarding dataacquisition in the DAQ-forum next time....

I think, NI DAQmx supplies you with the example you are looking for. Please open the example finder in LV (help->find examples) and the choose "directory structure" in the upper left quadrant.
Select DAQmx in the treeview, Counter->Count Digital Events .llb. There you can find a vi called "count digital events.vi". This VI should work with the 6014.
If you connect A to the source of counter 0 and B to DI 6 and select "externally controlled" in the count-direction, you should see the counting in ticks in the correct direction (up/down change when changing from clockwise to counterclockwise). The only thing which is missing now is to get the angel instead of ticks. Here the PPR of the encoder is important. Just divide the counted value by PPR of the encoder and then multiply by 360°.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,714 Views)