Is it possible to converte ideal angular velocity source signal rad/s to rpm ?
11 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Fangjun Jiang
2021-1-27
Do the conversion using a Gain block or use this block
11 个评论
Fangjun Jiang
2021-1-28
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Operators 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!