How do you change the locations of the inputs and outputs of a subsystem in Simulink or Simevents?

70 次查看(过去 30 天)
Hello,
I'm trying to figure out how to change the locations of inputs and outputs on a subsystem so that it will be easier to route wires in a desired direction. It will also allow for smoother flow when debugging specific things in my design. Any help would be greatly appreciated.
  6 个评论

请先登录,再进行评论。

回答(4 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-28
编辑:Azzi Abdelmalek 2013-1-28
You mean, you want to rotate your block, Select your block then type, ctrl+r twice
  3 个评论

请先登录,再进行评论。


Alec Reed
Alec Reed 2018-8-8
Only 5 years late, but within the subsystem, you can right click a port, select block parameters, and there is a option that says "Port Location on Parent Subsystem". Better late than never!
  2 个评论
Yale Lee
Yale Lee 2022-3-9
You can right-click on the subsystem (or pretty much any component) and select 'Rotate & Flip' and either 'Flip Block' to apply a vertical axial symetry, or rotate it as many times as needed. You can also flip the name label to put it on top (or bottom depending on how many times you apply it) of the block.
Hope this answers the question.

请先登录,再进行评论。


Oleksandr
Oleksandr 2023-3-24
With physical ports of subsystems in SimScape its tricky. You should obey certain sequence when creating them - from left to right, from top to bottom. This will affect wheather they will appear on the left or right side of the subsystem
In the example below I have created first Ua, then T1 to the right, then Ub below then T2 and so on.
Good luck!

Alexander
Alexander 2024-1-3
In 2023b, this seems to only be possible using simscape and bidirectional ports:
I don't think you can change the defaut side for inport/outport in simulink, but you can drag that port to any side that you wish. This would need to be done manually for each instance and only works if there is no mask.
I find this limitation very confusing when using back pressure. I'd like to put my back pressure output port for my inputs on the input side and back pressure input port for my outputs on the output side.

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by