setActiveConfigSet - Specify active configuration set or configuration reference for model - MATLAB (original) (raw)

Main Content

Specify active configuration set or configuration reference for model

Syntax

Description

setActiveConfigSet([model](#mw%5F11e748d7-1456-401c-9540-107f5b23d7d1), [configObjName](#mw%5F93645bda-0e7f-48db-ac6d-4b91b7c17919)) activates the configuration set or configuration reference that is attached tomodel and is named configObjName. Before you activate a configuration, attach the configuration to the model by using attachConfigSet.

example

Examples

collapse all

Create a configuration set, attach it to a model, and activate it.

Open the Model Fault-Tolerant Fuel Control System example modelsldemo_fuelsys.

openExample('simulink_automotive/ModelingAFaultTolerantFuelControlSystemExample') sldemo_fuelsys

Create a configuration set named Config1 and attach it to the model.

configObj = Simulink.ConfigSet; set_param(configObj,'Name','Config1') attachConfigSet('sldemo_fuelsys',configObj)

Activate the Config1 configuration set.

setActiveConfigSet('sldemo_fuelsys','Config1')

Input Arguments

collapse all

Name of model for which you want to activate a configuration set, specified as a character vector or string scalar. The model must be open.

Example: 'my_model'

Name of the configuration object that you want to activate, specified as a character vector or string scalar.

Example: 'Configuration'

Version History

Introduced before R2006a