What happens if I change the parameters of a copy of a subsystem in simscape?

1 次查看(过去 30 天)
Hi,
I am a beginner with Simscape and I am trying to model the heat evolution of the angled tip of a rod. To do that I separated my rod into many blocks (subsystems) and I created a staircase with the blocks at the tip of the rod. In order to have a variable angle I have two options either I add blocks (but I can't think of an efficient way to do it without being limited in the possible angles my model can produce) or I have the length of the blocks vary by changing the values of the thermal elements properties inside all of my subsystems.
Thus my question, if I copy a subsystem and change the parameters in the original one will those changes be automatically transferred to the copied subsystem or do I have to change the values in each one of them? Is there another way to change all those values at once ?
Thank you!

采纳的回答

Luca Ferro
Luca Ferro 2023-4-3
编辑:Luca Ferro 2023-4-3
No the copy is not linked whatwoever with the original.
What you are searching for is a reference block: https://ch.mathworks.com/help/simulink/slref/model.html
A reference block is strictly linked to its parent, meaning that every change in the parent will reflect on every reference. This is also true in the opposite direction, a change in the child will result in a change in the parent. Note that a reference block can also be de-referenced, so it is quite useful if you later decided to keep the block structure and get rid of the link.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating Custom Components and Libraries 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by