Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

getConfigSet - Get one of model's configuration sets or configuration references

Syntax

myConfigObj = getConfigSet('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

getConfigSet returns the configuration set or configuration reference (configuration object) that is attached to model and is named configObjName. If no such object exists, an error occurs.

Example

The following example returns the configuration object that is named DevConfig and attached to the current model. The code is the same whether DevConfig is a configuration set or configuration reference.

 myConfigObj = getConfigSet(gcs, 'DevConfig');

See Also

Setting Up Configuration Sets, Referencing Configuration Sets

attachConfigSet, attachConfigSetCopy, closeDialog, detachConfigSet, getActiveConfigSet, getConfigSets, openDialog, setActiveConfigSet

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS