Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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');

Introduced before R2006a

Was this topic helpful?