Variant Subsystem which only shows the ports of the currently active one
3 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Dinesh
on 1 Feb 2024
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.
0 Comments
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!