01-23-2020 06:10 AM
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.
Thanks in advance.
01-23-2020 06:35 AM
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"…
01-23-2020 07:35 AM
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.
01-23-2020 08:06 AM
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…