LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Sampling in LabVIEW (encoder)

I have a circuit with 2 digital outputs:
1) on the first output a pulse is generated in conjunction with the measurement of an encoder.
2) the second output generates a logical high or low depending on the direction of travel determined by the encoder.

What I need is a reliable way to determine when a pulse is generated and then count up or down depending on the state of the second output.
I tried to use a count events VI and perform a digital read when the counter incremented, but this didn't work. What is the most efficient way to do this?
Thanks,

Jordan
0 Kudos
Message 1 of 2
(2,789 Views)
Jordan,

There are example programs that were built to interface our multifunction DAQ devices with encoders. Our E Series DAQ devices have 2 24-bit counters that have an up/down pin associated with them so they can count up or down based on the input state of the up/down pin.

The example linked below is a LabVIEW example that shows how to use an E Series device with an encoder to count up or count down. I've also linked a document that explains how E Series devices work with encoders. I hope this helps.

Quadrature Encoder with DAQ STC (E-Series Boards)
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E9AD56A4E034080020E74861&p_node=DZ52326&p_submitted=N&p_rank=&p_answer=&p_source=Internal

Using Quadrature Encoders with E Seri
es DAQ Boards
http://zone.ni.com/devzone/conceptd.nsf/webmain/6F25CBA2CD73417786256869005E5FC3?opendocument

Regards,

Todd D.
Applications Engineer
0 Kudos
Message 2 of 2
(2,789 Views)