Variant Subsystem which only shows the ports of the currently active one
3 次查看(过去 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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!