Main Content

getConfigSets

Get names of all of model's configuration sets or configuration references

Description

example

myConfigObjNames = getConfigSets(model) returns the names of the configuration objects that are attached to the model. You can use the returned name of a configuration set from myConfigObjNames to activate it for the model.

Examples

collapse all

Get the names of the configuration sets and configuration references that are attached to a model.

Open the Using a Data Dictionary to Manage the Data for a Fuel Control System example model sldemo_fuelsys_dd and the referenced model sldemo_fuelsys_dd_controller. Get the configuration object names.

openExample('simulink_automotive/UseDDForFuelContSysExample')
sldemo_fuelsys_dd
sldemo_fuelsys_dd_controller
configObjNames = getConfigSets('sldemo_fuelsys_dd_controller')
configObjNames =

  1×1 cell array

    {'ModelReferencing'}

The model has one configuration set with the name ModelReferencing.

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

Names of the configuration objects that are attached to the model, returned as a cell array of character vectors. The configuration objects include configuration sets and configuration references.

Version History

Introduced before R2006a