Simulink® variant terminology helps you to understand various parameters and terms.
Variant Terminology | Description |
---|---|
Variant Subsystem, Variant Model | Contains one or more choices where each choice is a Subsystem or Model block. |
Variant Source | Provides variation on the source of a signal. |
Variant Sink | Provides variation on the sink (destination) of a signal. |
Variant Model | Variant Subsystem block containing Model block as variant choices. |
Active choice | Variant choice associated with a variant control that evaluates to
true . |
Variant control expression | Boolean expression or a Simulink.Variant object
containing a boolean expression or (default) . Used as
Variant control mode. |
Variant control label | String that is not evaluated and the choice used in simulation is determined by the Label mode active choice parameter. Used as Variant control mode. |
Variant control variable | MATLAB® variable, Simulink.Variant object, or a
Simulink.Parameter object. |
Variant object | Container of variant control expression. |
Variant Manager | Central tool that allows you to manage various variation points that are modeled using variant blocks in a system model. |
Variant Reducer | Reduces variant models to simplified, standalone model depending on the selected variant configurations. |
Variant Subsystem Parameters
Parameter name | Description |
---|---|
Variant | Used to check if the subsystem is a Variant
Subsystem block. Returns This is a read-only parameter. |
VariantControl | Subsystem block and Model block parameter, which applies to a choice block of a Variant Subsystem block and returns the variant control for the choice block.
|
VariantControlMode | Specifies the mode for modeling Variant blocks, which can
be either
|
LabelModeActiveChoice | Returns the variant control label of the selected choice
for the Variant Subsystem block when
|
TreatAsGroupedWhenPropagatingVariantConditions | Returns
|
GeneratePreprocessorConditionals
| Indicates if all the choices are to be analyzed and
preprocessor conditionals to be generated by returning
|
CompiledActiveChoiceControl | Returns the variant control corresponding to the active
choice of the Variant Subsystem block and returns
empty This is a read-only parameter. |
CompiledActiveChoiceBlock | Returns the full block path name of the active
Variant Subsystem block choice and returns
empty This is a read-only parameter. |
CompiledVariantInfo | Indicates if a block is active during simulation and if it
is part of generated code. Example: This is a read-only parameter. |
PropagateVariantConditions | Indicates if conditions on ports inside the Variant Subsystem block are to be propagated outside the block.
|
AllowZeroVariantControls
| Indicates if the Variant Subsystem block is allowed to have no active choices.
|
Variant Source and Variant Sink Parameters
Parameter name | Description |
---|---|
VariantControls | Returns a
|
VariantControlMode | Specifies the mode for modeling variant blocks, which can
be either
|
LabelModeActiveChoice | Returns the variant control label of the selected choice
for Variant Source or Variant Sink
block when
|
GeneratePreprocessorConditionals
| Indicates if all the choices are to be analyzed and
preprocessor conditionals to be generated by returning
|
ShowConditionOnBlock | Indicates if the
|
AllowZeroVariantControls
| Indicates if the block is allowed to have no active ports
by returning
|
CompiledActiveVariantControl
| Returns the variant control corresponding to the active
port from the last compilation instance. If no port is active,
returns empty This is a read-only parameter. |
CompiledActiveVariantPort | Returns the "index" of the active port from the last
compilation instance or returns This is a read-only parameter. |