Effacer les filtres
Effacer les filtres

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

5 vues (au cours des 30 derniers jours)
Raphael Klapczynski
Raphael Klapczynski le 21 Juin 2018
Réponse apportée : Dinesh le 1 Fév 2024
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.

Réponses (1)

Dinesh
Dinesh le 1 Fév 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.

Produits


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by