Quantcast

Documentation Center

  • Trial Software
  • Product Updates

setActiveConfigSet

Specify model's active configuration set or configuration reference

Syntax

setActiveConfigSet(model, configObjName)

Arguments

model

The name of an open model, or gcs to specify the current model

configObjName

The name of a configuration set (Simulink.ConfigSet) or configuration reference (Simulink.ConfigSetRef)

Description

setActiveConfigSet specifies the active configuration set or configuration reference (configuration object) of model to be the configuration object specified by configObjName. If no such configuration object is attached to the model, an error occurs. The previously active configuration object becomes inactive.

Examples

The following example makes DevConfig the active configuration object of the current model. The code is the same whether DevConfig is a configuration set or configuration reference.

setActiveConfigSet(gcs, 'DevConfig');

See Also

| | | | | | |

Was this topic helpful?