Main Content

Configuration Object Functions

To interact with a configuration, programmatically, use a Simulink.ConfigSet object or a Simulink.ConfigSetRef object. You can use the following functions to get information about the configuration. For more information about using configurations, see Manage Configuration Sets for a Model.

FunctionPurpose
getFullNameReturn the full path name of a configuration set or configuration reference as a character vector.
getModelReturn the model that owns the configuration set or configuration reference as a handle to the model.
getRefConfigSetReturn the configuration set that a configuration reference points to.
isActiveDetermine if the configuration set or configuration reference is the active configuration of the model, returned as a boolean value.
isValidParamDetermine if a specified parameter is a valid parameter of a configuration set.
refreshUpdate a configuration reference after using the API to change any property of the reference, or after providing a configuration set that did not exist at the time the set was originally specified in SourceName. If you omit executing refresh after any such change, the configuration reference handle will be stale, and using it will give incorrect results.
saveAsSave a configuration set to a MATLAB file.