setModelVariantControl
Description
setModelVariantControl(
configures the specified codeMappingObj,variantControl,Name=Value)Simulink.VariantControl object variantControl in the code
mappings codeMappingObj for code generation. 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. Use this function to map the specified variant control to the storage class and
storage class property settings that the code generator uses to produce C
code.
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2025a
See Also
coder.mapping.api.CodeMapping | coder.mapping.api.get | getModelVariantControl | getModelVariantVariable | 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