LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Encoder counter value to RPM

Hi,

 

I have a NI myRIO and an encoder which is being turned by a separate motor. I am looking to convert the counter value to to revolutions per minute. The Encoder has 5000 pulses per revolutions

I have attached a photo of the current block diagram below.

 

kevlenahan11_0-1579781199786.png

Thanks in advance.

0 Kudos
Message 1 of 4
(4,151 Views)

Hi kev,

 


@kevlenahan11 wrote:

I have a NI myRIO and an encoder which is being turned by a separate motor. I am looking to convert the counter value to to revolutions per minute. The Encoder has 5000 pulses per revolutions

I have attached a photo of the current block diagram below.


So what is the exact problem? Which result do you get - and what do you expect?

 

Most often rotation speed is calculated by

speed = (encoder_current - encoder_previous)/pulses_per_rev/time_interval

Right now you know "encoder_current" and "pulses_per_rev". You also need to know "encoder_previous" and "time_interval"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(4,127 Views)

Hi,

 

I currently have the total revolutions of the motor over a time manually specified. I am looking for the current speed (RPM) of the motor. How would I get encoder_previous and time_interval?

 

Thanks.

 

 

0 Kudos
Message 3 of 4
(4,077 Views)

Hi kev,

 

to get data from previous iterations you need to use shift registers - as you should have learned from taking the "Training resources" offered in the header of the LabVIEW board!

 

"encoder_previous" is the encoder value from previous iteration, time_interval is the difference between current time and previous time…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(4,070 Views)