Skip to Main Content Skip to Search
Product Documentation

setMode - Class: cgv.CGV
Package: cgv

Specify mode of execution

Syntax

cgvObj.setMode(connectivity)

Description

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.

Input Arguments

connectivity

Specify mode of execution

ValueDescription
sim or normal (default)Mode of execution is normal simulation.
silMode of execution is SIL.
pilMode of execution is PIL.

Examples

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();

See Also

cgv.CGV.copySetup | cgv.CGV.run

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