Variant Subsystem which only shows the ports of the currently active one

4 次查看(过去 30 天)
Dear helpers, I want to handle several variants of a subsystem (with different in and outports) within a Configurable- / Variant Subsystem block (maybe there are other kind of blocks I don't know?). The problem I have is, that they always show all in/out ports of all subsystem variants (the ones which aren't used are in a different color). Is there a way to hide those unused ports like the "Model Variants" block. The "Model Variants" block represents exactly what I want except the fact that I would have to save every variant-Subsystem into a seperate file.

回答(1 个)

Dinesh
Dinesh 2024-2-1
Hi Raphael.
I see the same behavior with "Variant Model" block as well.
Variant Subsystem or Variant Model have a superset of the ports of all the model or subsystem blocks inside them combined. On the top layer, you might see some other ports that are not present in the active choice because of this. But these other ports appear grayed out while the ports in the active choice are not. As of the latest release, you can right-click on the Variant Subsystem block, choose "Format > Port Labels > None" to hide all the port labels. But there is no option to hide the grayed out port labels alone. It wouldn't make much sense to have that option because the extra ports in the Variant subsystem will be present anyway.

类别

Help CenterFile Exchange 中查找有关 Variant Hierarchical Components 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by