Main Content

Model Configuration Sets

Store configuration parameters for multiple models or model variants

A configuration set is a named set of values for parameters that control the behavior of a model. Use configuration sets to:

  • Store multiple sets of configuration parameter values for a model

  • Quickly change between different model configurations

  • Use the same set of parameter values for multiple models

Functions

expand all

attachConfigSetAssociate configuration set or configuration reference with model
attachConfigSetCopyCopy configuration set or configuration reference and associate it with model
detachConfigSetDissociate configuration set or configuration reference from model
getActiveConfigSetGet active configuration set or configuration reference of model
getConfigSetGet configuration set or configuration reference from model
getConfigSetsGet names of all of model's configuration sets or configuration references
getRefConfigSetGet configuration set from configuration reference
setActiveConfigSetSpecify active configuration set or configuration reference for model
Simulink.BlockDiagram.loadActiveConfigSetLoad, associate, and activate configuration set with model
Simulink.BlockDiagram.propagateConfigSetPropagate top model configuration reference to referenced models
Simulink.BlockDiagram.restoreConfigSetRestore model configuration for converted models
Simulink.BlockDiagram.saveActiveConfigSetSave active configuration set of model
set_paramSet Simulink parameter value
get_paramGet parameter names and values
configset.reference.overrideParameterChange value of parameter in configuration reference (Since R2021a)
configset.reference.hasOverriddenParametersDetermine if model configuration reference has overridden parameters (Since R2021a)
configset.reference.getOverriddenParametersParameters that are overridden in a configuration reference (Since R2021a)
configset.reference.isParameterOverriddenDetermine if parameter is overridden in configuration reference of model (Since R2021a)
configset.reference.restoreOverriddenParameterRestore overridden parameter in configuration reference of model (Since R2021a)
configset.reference.restoreAllOverriddenParametersRestore all overridden parameters in configuration reference of model (Since R2021a)

Objects

expand all

Simulink.ConfigSetModel configuration set
Simulink.ConfigSetRefLink model to freestanding configuration set

Topics