Units in Matlab Model

3 次查看(过去 30 天)
Daniel Moulin
Daniel Moulin 2015-2-4
Hi,
I've got following problem - while i was modelling inverted pendulum in Simscape, there were only a few units that I could use for my system to decribe different variables. For example, for angular velocity of the pendulum in Simscape I have units like rad/s or deg/s. In the real system, where I implement my model I've got completely diffrent units (angular velocity - rotations/min, velocity of the cart - mm/min etc.) that don't comply with the ones in the model.
In both systems, I control upright position using PID controller. I tried to convert units in my model to units in the real system but something seems not to work. The gains don't fit, what's working in the simulation doesn't work in real system.
I don't know what I'm doing wrong.Can anybody help me with that.

回答(1 个)

Steve Miller
Steve Miller 2021-6-24
Hi Daniel,
The dropdown menus in Simscape permit you to specify units of the parameters. You can create your own unit combinations by entering the units as a text string composed of units that Simscape recognizes, and if you are using units that are not already in Simscape, you can add your own units. You have the flexibility you need to enter your parameters in any unit system you wish.
--Steve

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by