Is it possible to converte ideal angular velocity source signal rad/s to rpm ?

11 views (last 30 days)
My input signal is in rad/s for ideal angular velocity source but I want to feed my incremental shaft encoder in rpm. Also we don't connect mechanical rotational conserving port via gain or unit conversion block. I didn't find any solution yet

Answers (1)

Fangjun Jiang
Fangjun Jiang on 27 Jan 2021
Do the conversion using a Gain block or use this block
  11 Comments
Fangjun Jiang
Fangjun Jiang on 28 Jan 2021
In your model, set the constant to be 2*pi rad/s, that is 1 rev per second. Change the encoder setting to be 10 pulses per rev, run simulation for 1 seconds (that means it turned one rev). Connect a Scope block to the Simulink "Outport" 3 and "Outport" 1.
"Outport" 3 is the "A" output of the encoder, it shows 10 pulses. It is correct.
"Outport" 1 is the "Z" output of the encoder, it shows 1 pulse. It is also correct.
So the model is correct as desired. To measure the output of the encoder, you need to count the pulses of "Outport" 3 or "Outport" 1. That is the same as in physical world that you need to count the pulse output of the encoder. 10 pulses per second on "Outport" 3 means 1 rev per second based on the setting. Then you can convert your processed output to rad/s or rpm.
Keep in mind that in physical world, the physical device just rotates, it does not carry a unit. You observe it and quatify it with a unit.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!