vssSetSimulationHaltFlag
Set a simulation interruption flag.
Syntax
vssSetSimulationHaltFlag(block,flag)
Inputs
- block
- The block from where the simulation will be interrupted.
- flag
- Interruption flag.
Examples
Flag used in an OML Custom Block to stop the simulation.
function OmlBlockFunction(block,flag)
...
if flag == vssBlockInitializeFlag
elseif flag == vssBlockReinitializeFlag
elseif flag == vssBlockTerminateFlag
elseif flag == vssBlockOutputUpdateFlag
...
if myCondition >= 0
...
vssSetSimulationHaltFlag(block,2)
end
end
end