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 illustrates mask icon promotion for these icon types:
Plain text
Plot
Built-in icon
Image
Explore Model
Open the example model slexVariantSubsystemMaskIconPromotion
.
open_system('slexVariantSubsystemMaskIconPromotion');
The model has four Variant Subsystem blocks: VariantSubsystem1
, VariantSubsystem2
, VariantSubsystem3
, and VariantSubsystem4
. These Variant Subsystem blocks do not have a mask. However, the active variant block within each subsystem has a mask with a mask icon.
VariantSubsystem1
: Mask icon on the active variant block is plain text.
VariantSubsystem2
: Mask icon on the active variant block is a plot.
VariantSubsystem3
: Mask icon on the active variant block is a built-in icon.
VariantSubsystem4
: 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');