Main Content
Automatic Mask Icon Promotion in Variant Subsystems
This example shows how Simulink® automatically displays the mask icon of the active variant block on the parent Variant Subsystem block. The example shows mask icon promotion for these types of icons:
Plain text
Plot
Built-in icon
Image
Explore the Model
Open the example model slexVariantSubsystemMaskIconPromotion
.
open_system('slexVariantSubsystemMaskIconPromotion'); % The model has four Variant Subsystem blocks (|VariantSubsystem1|, |VariantSubsystem2|, % |VariantSubsystem3|, and |VariantSubsystem4|). The Variant Subsystem blocks do not have a mask. % The active variant block within each subsystem has a mask with a mask % icon.
VariantSubsystem1
: The mask icon on the active variant block is plain text.
VariantSubsystem2
: The mask icon on the active variant block is a plot.
VariantSubsystem3
: The mask icon on the active variant block is a built-in icon.
VariantSubsystem4
: The mask icon on the active variant block is an image.
Simulate the Model to View Mask Icon Promotion
On the Simulation tab, click Run to see how the mask icon of the active choice gets promoted to the parent subsystem.
sim('slexVariantSubsystemMaskIconPromotion'); open_system('slexVariantSubsystemMaskIconPromotion');