Simulink 2021b subsystem port position change

조회 수: 21 (최근 30일)
Ilkka
Ilkka 2023년 9월 6일
답변: Ishaan 2025년 2월 18일
Hi,
I am working on Simulink 2021b and i have noticed that I can drag and move subsystem's ports from one side to the next on some subsystems, but not on some other subsystems. Below are two example subsystems as an example:
As one can see, the subsystem below has its ports moved to upper and lower sides, whereas the upper subsystem's ports cannot be moved by dragging. If I try, it only attempts to connect the port to something, i.e. it will draw a line.
Is there something I am possibly missing or is this just a bug?
  댓글 수: 2
Jon
Jon 2023년 9월 6일
I think the difference between the two blocks is that the lower block only has inports, whereas the upper block has an enable port. Apparently the location of enable ports can not be changed. I don't know if this would be considered a bug or just a design choice on what features to enable.
Ilkka
Ilkka 2023년 9월 7일
It seems that might be the case, also if it is masked then one can't drag the port eihter. For what reason it is decided to be done this way I cannot fathom, but thank you for help Jon!

댓글을 달려면 로그인하십시오.

답변 (1개)

Ishaan
Ishaan 2025년 2월 18일
Hello Illkka,
I notice that you wanted to understand why you can drag and move ports of the subsystem at the bottom of the image you shared, but not in the subsystem at the top.
In Simulink R2021b and later, the ability to move and rearrange ports by dragging is available for standard subsystems, but not for enabled subsystem blocks. This is probably because the top side of an enabled subsystem is reserved for the enable signal, restricting port movement.
To work around this limitation, you can wrap the enabled subsystem by placing the enabled subsystem inside another standard subsystem. This allows you to move and rearrange the outer subsystem's ports freely, including the enable signal as an additional inport. With this you can manage port arrangements while working with enabled subsystems in Simulink.
Hope it helps.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by