Skip to Main Content Skip to Search
Product Documentation

activateConfigSet - Class: cgv.CGV
Package: cgv

Activate configuration set of model

Syntax

cgvObj.activateConfigSet(configSetName)

Description

cgvObj.activateConfigSet(configSetName) specifies the active configuration set for the model, only while the model is executed by cgvObj. cgvObj is a handle to a cgv.CGV object. configSetName is the name of a configuration set object, Simulink.ConfigSet, which already exists in the model. The original configuration set for the model is restored after execution of the cgv.CGV object.

Examples

Before calling cgv.CGV.run on a cgv.CGV object for a model, the model must already contain the named configuration set. After creating the cgv.CGV object for a model, you can use cgv.CGV.activateConfigSet to activate any configuration set in the model when the cgv.CGV object simulates the model.

configObj = Simulink.ConfigSet;
attachConfigSet('rtwdemo_cgv', configObj);
cgvObj = cgv.CGV('rtwdemo_cgv');
cgvObj.activateConfigSet(configObj.Name);

How To

  


Related Products & Applications

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

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