vssGetState

Get the state of a block.

Syntax

vv = vssGetState(block)

Inputs

block
Handle of the block used in the evaluation, compilation and simulation phases. The handle refers to an engine/core block structure.
Type: block
Dimension: -

Outputs

vv
State of the block.
Type: double | integer
Dimension: scalar | vector

Example

Define the variable x in an OML custom block as equal to the given block states.

function OmlBlockFunction(block,flag)
...
x=vssGetState(block);
...
end