How can I get the speed (RPM) of the VI encoder

Greetings,

I have a two motors with quadrature encoders attached to them.

I use the VI encoder with the myRIO, which generates two values - counter value and the direction of the counter. The value of the counter, I try to display the speed (RPM). Only the value of the counter is count upwards or downwards according to the direction; I need a way to use these figures to measure the speed. I can't understand how to do this?

Thanks in advance for your help.

Artem.SPb wrote:

You have to count the difference in the values of a counter and divide to measurement period.

Not exactly, the result of the subtraction of counting must be divided by the number of counts of encoder/rotation before being divided by dt (expressed in minutes).

Ben64

Tags: NI Software

Similar Questions

Maybe you are looking for