vssBlockReinitializeFlag

Flag used in custom blocks mainly with continuous blocks for updating states based on a defined input. For example, the block can be called by the simulator during the initialization phase to find the steady state of a system.

Syntax

flagout = vssBlockReinitializeFlag

Outputs

flagout
Output of flag.
Type: logical
Dimension: Boolean

Example

Flag used in an OML Custom Block to read a CSV file upon the simulation reinitialization.

function OmlBlockFunction(block,flag)
	...
    if flag == vssBlockInitializeFlag
	   ...
    elseif flag == vssBlockReinitializeFlag
	   csvdata = csvread('inputfile.csv');
    elseif flag == vssBlockTerminateFlag
	   ...
    elseif flag == vssBlockOutputUpdateFlag
	   ...
    end
end