getModelVariantControl
Get code configuration from code mappings for
Simulink.VariantControl
object
Since R2025a
Description
returns the value of a code mapping property or calibration property for the specified
propertyValue
= getModelVariantControl(codeMappingObj
,variantControl
,property
)Simulink.VariantControl
object. Use this function to return the storage class or
the calibration access of a calibration property configured for the variant control.
Specifying code generation attributes for a Simulink.VariantControl
object
using code mappings is supported when the object is defined in the model workspace and its
Value
property is set to a Simulink.Parameter
object.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a
See Also
coder.mapping.api.CodeMapping
| coder.mapping.api.get
| setModelVariantControl
| find
| Simulink.VariantControl
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