getModelVariantVariable
Get code configuration from code mappings for
Simulink.VariantVariable
object
Since R2025a
Description
returns the value of a code mapping property for the specified propertyValue
= getModelVariantVariable(codeMappingObj
,variantVariable
,property
)Simulink.VariantVariable
object variantVariable
(also
referred to as a variant parameter) from the code mapping
codeMappingObj
. A Simulink.VariantVariable
object
derives its code mappings from the Simulink.Parameter
object that is used
to set the Specification
property of the object. The getModelVariantVariable
function returns
the storage class and storage class property settings configured for the
Simulink.VariantVariable
object from this
Simulink.Parameter
object. For code mappings support, the
Simulink.VariantVariable
object and its associated
Simulink.VariantControl
and Simulink.Parameter
objects
must be defined in the model workspace of the model.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a
See Also
coder.mapping.api.CodeMapping
| coder.mapping.api.get
| setModelVariantControl
| find
| Simulink.VariantVariable
Topics
- Configure Code Generation for Variant Parameters in Model Workspace Using Code Mappings Editor
- Generate Code for Instance-Specific Variation of Variant Parameter Values in Model Reference Hierarchy
- Configure Parameters for C Code Generation
- Configure Parameter and Parameter Argument Tuning Service Interfaces for Model Parameters and Model Parameter Arguments