Main Content

Variants Example Models

These Simulink® Variants Example models help you to understand and use the variant blocks and features. For more examples, see Simulink Variant Examples.

Variants Example Models

Goal

Related Topics

Simulink Variant ExamplesLanding page for all Variant example models. You can access all the Simulink models used in different Variant examples from this page. 

Variant Subsystems

Specify an active variant control for a variant subsystem programmatically.

Variant Subsystems

Variant Subsystems - Enumerations

Improve readability in the conditions of the Variant object.

Variant Subsystems

Adaptive Interfaces for Variant Subsystems

Observe how the Variant Subsystem block adapts its interface to the connected blocks.

Adaptive Interface for Variant Subsystems

Variant Source and Variant Sink Blocks

Understand variant condition propagation in a model containing Variant Source or Variant Sink blocks.

Variant Source and Variant Sink Blocks

Provide Variation at Source and Destination of a Signal Using Manual Variant Source and Manual Variant Sink Blocks

Understand propagation of the active variant choice in a model containing Manual Variant Source or Manual Variant Sink blocks.

Manual Variant Source

Manual Variant Sink

Variant Source and Sink blocks in car wiper motor

Understand how to use Variant Source and Variant Sink blocks in a car windshield skeleton model.

 

Variant Management

Create and manage various variant configurations of a model through the Variant Manager.

Variant Manager Overview

Variant Sensors

Understand how variant conditions propagate in a model containing cascaded Variant Source blocks.

Cascading Blocks and Compounding Conditions

Masking a Variant Subsystem

Understand how to select a variant choice for a variant subsystem using mask parameters and mask initialization code.

Approaches to Control Active Variant Choice of a Variant Block Using Mask or Model Workspace

Variants with Function-Call Subsystem

Understand propagation of variant condition in a model containing Function-Call Subsystem block.

Propagate Variant Conditions from Variant Source Blocks to Conditionally Executed Subsystems

Variant Simulink Functions - Inherit Condition

Understand how a Variant Simulink Function can optimally exist based on its Function-callers.

Variant Condition Propagation with Simulink Function block

Variant Simulink Functions - Specified Condition

Understand how to conditionally define the existence of a Simulink Function.

Variant Condition Propagation with Simulink Function block

Variant Condition Propagation to Subsystems

Understand propagation of variant conditions to different types of subsystems.

Propagate Variant Conditions from Variant Source Blocks to Subsystem Blocks

Variant Condition Propagation to Conditionally Executed Subsystems

Understand propagation of variant condition in a model containing a conditional subsystem.

Propagate Variant Conditions from Variant Source Blocks to Conditionally Executed Subsystems

Variant Subsystem with Conditionally Executed Systems

Understand the modeling of Variant Subsystem with Enable Subsystem as choice.Use Variant Subsystem Blocks with Conditionally Executed Subsystems

Export function model with Variant Subsystem

Understand the export function modeling of Variant Subsystem with Function-Call blocks as choice.Use Variant Subsystem Blocks with Conditionally Executed Subsystems

Variant Conditions and Data Stores

Understand the functioning of local Data Store Memory blocks with the Variant blocks.

 

Variant Condition Propagation and Model Blocks

Understand propagation of variant conditions from the output port of the Model block.

Variant Condition Propagation with Model Block

Controlling and Stopping Variant Condition Propagation

Control or stop the Variant condition propagation upstream and downstream for a model containing the Subsystem block.

Control Variant Condition Propagation

Generate preprocessor conditionals for Variant Subsystems

Generate and understand code for a model containing the Variant Subsystem block.

Use Variant Subsystem To Generate Code That Uses C Preprocessor Conditionals (Embedded Coder)

Dimension Variants

Understand how to generate code for a model with dimension variants.

 

Model Reference Variants

Understand how to use Model blocks as variants.

Model Reference Variants

Model Reference Variants - Enumerations and Reuse

Understand the enumerations and reuse capabilities of a model.

Model Reference Variants

Generate preprocessor conditionals for model subsystem

Generate and understand the code for Model blocks within the Variant Subsystem block.

Use Variant Models to Generate Code That Uses C Preprocessor Conditionals (Embedded Coder)

Bus - Variant ConditionUnderstand how to simulate or generate code from bus signals with variant conditions.

Variant Elements within Buses

Verify and Validate Variant Models with Code Compile Activation TimeUnderstand how Verification and Validation activities are done on Variant models. 
Automatic Mask Icon Promotion in Variant SubsystemsUnderstand promotion of mask icon of the active variant to the parent Variant Subsystem.Variant Subsystems
Create Variant Controls Using MATLAB® Enumeration ClassUnderstand how to create variant controls using MATLAB® enumerations.Introduction to Variant Controls
Create Variant Controls Using an In-Memory Enumeration ClassUnderstand how to create variant controls using Simulink enumerations.Introduction to Variant Controls
Reduce a Variant Model for Selected Variant ConfigurationReduce a variant model programmatically or from the Variant Manager.Reduce Models Containing Variant Blocks

Related Topics