| Contents | Index |
Specify mode of execution
cgvObj.setMode(connectivity)
cgvObj.setMode(connectivity) specifies the mode of execution for the cgv.CGV object, cgvObj. The default value for the execution mode is set to either normal or sim.
connectivity |
Specify mode of execution
|
After running a cgv.CGV object, copy the object. Before rerunning the object, call setMode to change the execution mode to sil for an existing cgv.CGV object.
cgvModel = 'rtwdemo_cgv';
cgvObj1 = cgv.CGV(cgvModel, 'connectivity', 'sim');
cgvObj1.run();
cgvObj2 = cgvObj1.copySetup()
cgvObj2.setMode('sil');
cgvObj2.run();cgv.CGV.copySetup | cgv.CGV.run

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 |