| Contents | Index |
Activate configuration set of model
cgvObj.activateConfigSet(configSetName)
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.
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);
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 |