vssBlockOutputUpdateFlag
Flag used in custom blocks and called to compute the outputs during a simulation. It is called every time the block is activated.
Syntax
flagout = vssBlockOutputUpdateFlag
Outputs
- flagout
- Output of flag.
Example
Flag used in an OML Custom Block, whose output that is triggered is defined with vssSetOutPortData
function OmlBlockFunction(block,flag)
...
if flag == vssBlockInitializeFlag
...
elseif flag == vssBlockReinitializeFlag
...
elseif flag == vssBlockTerminateFlag
...
elseif flag == vssBlockOutputUpdateFlag
vssSetOutPortData(block,1,x(2),vssGetOutputDataType(block,1));
end
end