필터 지우기
필터 지우기

Change simulink port location of signal after dragging block into "Create Subsystem"

조회 수: 3 (최근 30일)
Often times when I create a subsystem from a group of Simulink blocks, the inport and outports have the signals entering into the top.
I cannot find a menu entry to change these ports so the signal enters from the side, like normal. The only solution I have found is deleting the block and putting in a new inport/outport.
Is there a way to change this characteristic? It isn't a lot of work but it can add up (deleting the port tends to change all my port numbering and I have to reconnect signals outside the subsystem.

채택된 답변

Sebastian Castro
Sebastian Castro 2017년 6월 19일
It's the same block; you just have to rotate it and resize it to make it look like a "fresh" block.
You can right-click the block and use the context menu to rotate and resize blocks.
- Sebastian
  댓글 수: 2
Dave Walter
Dave Walter 2017년 6월 20일
Ok, thanks. So between rotating and resizing it's about the same amount of work as deleting, inserting a new port, and reconnecting.
Sebastian Castro
Sebastian Castro 2017년 6월 20일
Yeah, it is, but as you said it won't mess up your numbering.
What I usually do is use the shortcuts for rotating (Ctrl+R or Ctrl+Shift+R) and then select all the "messed up" ports, select a "good" one, and use the "match sizes" option, or whatever it's called. Makes things look better.

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

추가 답변 (0개)

카테고리

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