Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to get velocity with quadrature encoder

I can count and measure the displacement from the encoder signal with your quadrature encoder example file.
But, can you please advise me know how to implement to get velocity or RPM from that somewhat easily?
Thank you for your help.
0 Kudos
Message 1 of 2
(3,361 Views)
Hey Encoder,

You can measure velocity by using a buffered, counting operation. With a buffered operation, the count is latched on the rising/falling edge of the gating signal. Therefore, if you provide a signal to the gate with a known frequency, you will be able to mathmatically determine the frequency of the signal connected to the source.

You can usually use another counter to provide a gating signal with a known frequency. There are example programs that illustrate how to do this.

DAQ-STC: Measuring the Frequency of a TTL Signal (Easy-Level VIs)
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD4756A4E034080020E74861&p_node=DZ52329&p_source=External

Measure a TTL frequency with DAQ-STC or NI-TIO in Visual Basic
http://si
ne.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D7A756A4E034080020E74861&p_node=DZ52329&p_source=External

I hope this helps.

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 2
(3,361 Views)