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