Main Content

getActiveConfigSet

Get active configuration set or configuration reference of model

Description

myConfigObj = getActiveConfigSet(model) returns the active configuration object of the model as a ConfigSet object or a Simulink.ConfigSetRef object.

example

Examples

collapse all

Get the active configuration set for a model that is open.

Open the model vdp and get the active configuration set.

openExample('simulink_general/VanDerPolOscillatorExample');
vdpConfig = getActiveConfigSet('vdp');

Input Arguments

collapse all

Name of model, specified as a character vector or string scalar. The model must be open.

Example: 'mymodel'

Output Arguments

collapse all

The configuration object, returned as a ConfigSet object or a Simulink.ConfigSetRef object.

Version History

Introduced before R2006a