Variant Terminology
金宝app®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 aSubsystemorModelblock. |
Variant Source | Provides variation on the source of a signal. |
Variant Sink | Provides variation on the sink (destination) of a signal. |
Variant Model | Variant Subsystemblock containingModelblock as variant choices. SeeVariant Subsystem, Variant Model. |
Active choice | Variant choice associated with a variant control that evaluates totrue . |
Variant control mode |
|
Variant control variable | MATLAB®variable,Simulink.Variant object, or aSimulink.Parameter object. SeeTypes of Variant Control Variables (Operands) in Variant Blocks. |
Variant object | Container of variant control expression. SeeSimulink.Variant . |
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 Configuration, Variant Configuration data object | A variant configuration consists of a named set of variant control variables, their values, and configurations to be used by referenced models. It can be used to activate a variation of a Simulink model. A variant configuration data object (instance of the
You can create new variant configurations and group them into a variant configuration data object from Variant Manager or programmatically using the To associate the variant configuration data object to a model, use the Export variant configuration data object functionality in Variant Manager, or use the variantConfig = Simulink.VariantConfigurationData; set_param(model,'VariantConfigurationObject',...'variantConfig'); |
Command Line Parameters
Variant Subsystem Parameters
Parameter name | Description |
---|---|
Variant |
Used to check if the subsystem is aVariant Subsystemblock. Returns This is a read-only parameter. |
VariantChoices |
Gets the list of variant choices in aVariant Subsystemblock. Example: Returns a 1-by-Nstruct array with fields:
This is a read-only parameter. |
VariantControl |
Subsystemblock andModelblock parameter, which applies to a choice block of aVariant Subsystemblock 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 theVariant Subsystemblock when
|
TreatAsGroupedWhenPropagatingVariantConditions |
Returns
SeePropagate Variant Conditions from Variant Source Blocks to Subsystem Blocks. |
GeneratePreprocessorConditionals |
Indicates if all the choices are to be analyzed and preprocessor conditionals to be generated by returning
Note Use theVariant activation timeparameter instead. |
CompiledActiveChoiceControl |
Returns the variant control corresponding to the active choice of theVariant Subsystemblock and returns empty This is a read-only parameter. |
CompiledActiveChoiceBlock |
Returns the full block path name of the activeVariant Subsystemblock choice and returns empty This is a read-only parameter. |
CompiledVariantInfo |
Block parameter that indicates the variant activeness of a block模型编译后. Returns a structure with three fields, with values set to
For an example, seeIdentify Variant Activeness of a Block After Model Compilation. This is a read-only parameter. |
PropagateVariantConditions |
Indicates if conditions on ports inside theVariant Subsystemblock are to be propagated outside the block.
|
AllowZeroVariantControls |
Indicates if theVariant Subsystemblock is allowed to have no active choices.
|
VariantActivationTime |
Determines if Simulink sets the active choice of aVariant Subsystemblock during update diagram or code compile.
Note The |
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 forVariant SourceorVariant Sinkblock when
|
GeneratePreprocessorConditionals |
Indicates if all the choices are to be analyzed and preprocessor conditionals to be generated by returning
Note Use theVariant activation timeparameter instead. |
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. |