vssGetInputData

Get block's signal input.

Syntax

vv = vssGetInputData(block,varidx)

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: -
varidx
Variable index according to the port number.
Type: integer
Dimension: scalar

Outputs

vv
Signal that has been retrieved.
Type: double | integer
Dimension: scalar | vector | matrix

Example

Get data in an OML custom block and assign it to vv and ww variables, respectively, which are the block’s signal input from the 1st and 2nd ports.

function OmlBlockFunction(block,flag)
   vv=vssGetInputData(block,1);
   vv=vssGetInputData(block,2);
   ...
end