The Simulink® Variants Example models help you to understand and use the variant blocks and features.
Variants Example Models
|Simulink Variant Examples||Landing page for all Variant example models. You can access all the Simulink models used in different Variant examples from this page.|
Specify an active variant control for a variant subsystem programmatically.
Improve readability in the conditions of the
Observe how the Variant Subsystem block adapts its interface to the connected blocks.
Understand variant condition propagation in a model containing Variant Source or Variant Sink blocks.
Understand propagation of the active variant choice in a model containing Manual Variant Source or Manual Variant Sink blocks.
Understand how to use Variant Source and Variant Sink blocks in a car windshield skeleton model.
Create and manage various variant configurations of a model through the Variant Manager.
Understand how variant conditions propagate in a model containing cascaded Variant Source blocks.
Understand how to select a variant choice for a variant subsystem using mask parameters and mask initialization code.
Understand propagation of variant condition in a model containing Function-Call Subsystem block.
Understand how a Variant Simulink Function can optimally exist based on its Function-callers.
Understand how to conditionally define the existence of a Simulink Function.
Understand propagation of variant conditions to different types of subsystems.
Understand propagation of variant condition in a model containing a conditional subsystem.
|Understand the modeling of Variant Subsystem with Enable Subsystem as choice.||Variant Systems with Conditional Systems|
|Understand the export function modeling of Variant Subsystem with Function-Call blocks as choice.||Variant Systems with Conditional Systems|
Understand the functioning of local Data Store Memory blocks with the Variant blocks.
Understand propagation of variant conditions from the output port of the Model block.
Control or stop the Variant condition propagation upstream and downstream for a model containing the Subsystem block.
Generate and understand code for a model containing the Variant Subsystem block.
Understand how to generate code for a model with dimension variants.
Understand how to use Model blocks as variants.
Understand the enumerations and reuse capabilities of a model.
|Generate and understand the code for Model blocks within the Variant Subsystem block.|
|Bus - Variant Condition||Understand how to simulate or generate code from bus signals with variant conditions.|
|Variant Subsystem - Verification &Validation Workflow||Understand how Verification and Validation activities are done on Variant models.|
|Automatic Mask Icon Promotion in Variant Subsystems||Understand promotion of mask icon of the active variant to the parent Variant Subsystem.||Variant Subsystems|
|Create Variant Controls Using MATLAB® Enumeration Class||Understand how to create variant controls using MATLAB® enumerations.||Approaches for Specifying Variant Controls|
|Create Variant Controls Using an In-Memory Enumeration Class||Understand how to create variant controls using Simulink enumerations.||Approaches for Specifying Variant Controls|
|Reduce a Variant Model for Selected Variant Configuration||Reduce a variant model programmatically or from the Variant Manager.||Reduce Models Containing Variant Blocks|