如何重新排列Simulink子系统的端口

时间:2018-12-27 22:28:42

标签: simulink subsystem

我在包含以太网总线的Simulink / SimEvents(2018b)中实现了网络仿真,该总线由三个不同的子系统组成,如图所示。

Ethernet Bus in Simulink

这些块将实体彼此发送。这导致了一个相当复杂的场景,我想通过更改端口的位置(例如子系统同一侧的输入端口和输出端口)来进行改进。我还没有找到一种方法。

我希望有人能帮助我。

1 个答案:

答案 0 :(得分:0)

不可能。入口和出口始终位于块的相对侧,并且不能更改。

例外是触发器和/或启用端口,它们出现在没有入口或出口的一侧-但它们也不能更改。

在早期版本的SimEvents中,您可以将进口和出口定位在同一侧,但是我认为功能已在大约R2017a左右被删除。

在您的情况下,您可以旋转Node模块来整理这些连接,但是对于其他相互交叉的信号,您实际上无能为力。 (尽管我不喜欢这样做,但可以使用body, html { background: #efefef; display: flex; justify-content: center; align-items: center; min-height: 100%; z-index: -1; } .btn { border: 3px solid #1a1a1a; display: inline-block; padding: 10px; position: relative; text-align: center; transition: background 600ms ease, color 600ms ease; } input[type="radio"].toggle { display: none; } input[type="radio"].toggle + label { cursor: pointer; min-width: 60px; } input[type="radio"].toggle + label:hover { background: none; color: #1a1a1a; } input[type="radio"].toggle + label:after { background: #1a1a1a; content: ""; height: 100%; position: absolute; top: 0; transition: left 200ms cubic-bezier(0.77, 0, 0.175, 1); width: 100%; z-index: -1; } input[type="radio"].toggle.toggle-left + label { border-right: 0; } input[type="radio"].toggle.toggle-left + label:after { left: 100%; } input[type="radio"].toggle.toggle-right + label { margin-left: -5px; } input[type="radio"].toggle.toggle-right + label:after { left: -100%; } input[type="radio"].toggle:checked + label { cursor: default; color: #fff; transition: color 200ms; } input[type="radio"].toggle:checked + label:after { left: 0; } GoTo块。)

相关问题