Main Content

setMode

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 = 'myCGVModel';
cgvObj1 = cgv.CGV(cgvModel, 'connectivity', 'sim');
cgvObj1.run();
cgvObj2 = cgvObj1.copySetup()
cgvObj2.setMode('sil');
cgvObj2.run();