How to interface a Simscape DC motor's 'R' terminal to Simulink outport?

2 次查看(过去 30 天)
Hi all, I'm trying to model a DC motor on Simscape. An example by MATLAB uses the model below and I am unsure how to interface the R terminal of the motor in Simscape to a Simulink outport. I am unable to figure out what the 'S' block is so I tried using the PS-Simulink converter which is unfortunately not working for me.
Is there any solution to this problem? What is the 'S' block? Thank you.

回答(1 个)

Sayan
Sayan 2024-3-14
Hi Sneha,
The "R" port in the DC motor is a mechanical rotational conserving port. It does not directly measure anything. So you cannot take out this terminal through a PS-Simulink converter directly. However, you can connect it to any sensor to measure rotational motion, linear motion, or position and connect it to a PS-Simulink converter before connecting it to a Simulink outport.
The "S" block is like a subsystem within which there is a sensor sensing the rotational speed of the rotor in rpm, which is then connected to a PS-Simulink converter before connecting to the outport. You can find this example containing a similar "S" block for your reference.
If you need to take out the "R" terminal crossing a subsystem boundary, you can use Connection ports. You can find more details on them here.
You can find more information on the DC motor in the following documentation.
Hope this answers the query.

类别

Help CenterFile Exchange 中查找有关 Parameterization Methods 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by