如何在 Simulink 中调整子系统模块上 IO 端口的显示?
我正在 Simulink 中开发一个 8 输入数字多路复用器,并创建了一个子系统,该子系统通过 3 个使能输入实现多路复用器操作。
我想在子系统模块的左侧显示输入通道 (I0-I7
),在子系统的底部显示 3 个启用输入 (S0-S2
)模块,以及子系统模块右侧的输出端口,如下所示:
--------------
| |
I0----> | |
I1----> | |
I2----> | |
I3----> | |------>X
I4----> | |
I5----> | |
I6----> | |
I7----> | |
--------------
^ ^ ^
| | |
S0 S1 S2
但是,在 Simulink 中,该模块始终显示为所有 输入端口位于一侧,所有另一侧的输出端口。
有谁知道如何在不止一侧显示输入端口?我的所有输入端口都位于一侧,因此很难在视觉上区分它们。
I'm developing an 8-input digital multiplexer in Simulink and created a subsystem which implements a multiplexer operation with 3 enable inputs.
I would like to display the input channels (I0-I7
) on the left of the subsystem block, the 3 enable inputs (S0-S2
) on the bottom of the subsystem block, and the output port on the right of the subsystem block, like this:
--------------
| |
I0----> | |
I1----> | |
I2----> | |
I3----> | |------>X
I4----> | |
I5----> | |
I6----> | |
I7----> | |
--------------
^ ^ ^
| | |
S0 S1 S2
However, in Simulink the block is always displayed with all the input ports on one side and all the output ports on the opposite side.
Does anyone have any ideas for how I can display input ports on more than one side? Having all my input ports on one side makes it harder to visually distinguish them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种选择是使用 Mux (或者可能是 bus) 信号将输入通道收集到一个输入中。输入较少,如果它们都在同一侧,则更容易区分它们。另外,不要忘记标记您的输入端口。
One option is to use a Mux (or perhaps a bus) signal to collect the input channels into just one input. With fewer inputs, it will be easier to distinguish them if they are all on the same side. Also, don't forget to label your input ports.