フィルターのクリア

Difference between Simscape 'Electrical' and 'SPS' Block parameters linkage with the workspace

3 ビュー (過去 30 日間)
Nachiappan
Nachiappan 2023 年 4 月 12 日
回答済み: Atharva 2023 年 4 月 26 日
When you link the one of the Simscape 'SPS' Block parameter with the model work space or base work space, According to the attached picture you can see where the paramerter got linked. Here the Parameter 'Resistance (ohms)' got linked to the variable 'R' and it has been considered from R(Mask Initialization: Distributed Parameters line).
But when you link the one of the Simscape 'Electrical' Block parameter with the model work space or base work space. You cannot see where it linked to?
can you please advise?

回答 (1 件)

Atharva
Atharva 2023 年 4 月 26 日
Hey Nachiappan,
When you link a parameter of a Simscape Electrical block to a variable in the model workspace or base workspace, you may not see an explicit link between the two. This is because Simscape Electrical uses a different parameterization approach compared to other Simscape domains.
In Simscape Electrical, parameters are typically defined in terms of physical values such as resistance, capacitance, and inductance, rather than in terms of individual parameter values such as R, C, and L. These physical values are then used to derive the parameter values needed for simulation. Therefore, when you link a parameter of a Simscape Electrical block to a variable in the workspace, you are essentially specifying the physical value that the parameter should take on, rather than the parameter value itself.
For example, if you link the 'Resistance' parameter of a Simscape Electrical resistor block to a variable named 'R' in the model workspace, the resistor block will use the value of 'R' to calculate the resistance of the resistor, rather than storing the value of 'R' directly as a parameter.
To verify that the parameter has been linked correctly, you can check the value of the parameter during simulation by using the 'Signal Logging' feature in Simulink. This will allow you to see the value of the parameter at each time step during simulation and confirm that it is taking on the expected values.

カテゴリ

Help Center および File ExchangeParameterization Methods についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by