setVariantConfiguration
Set variant configuration for simulation using SimulationInput
object
Since R2024a
Description
sets the variant configuration simin
= setVariantConfiguration(simin
,varconfigname
)varconfigname
for the simulation
configured using the Simulink.SimulationInput
object
simin
.
For models that use variant elements in Simulink®, such as variant blocks and variant parameters, you can create named variant
configurations using Variant Manager for Simulink. A variant configuration represents a combination of variant choices across
the model hierarchy. Using Variant Manager, you define a variant configuration as a set of
variant control variables and their values, which you can use to activate a specific variant
path in the hierarchy. Use the setVariantConfiguration
method to specify
the variant configuration to apply to the model before the simulation runs.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a