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.
- varidx
- Variable index according to the port number.
Outputs
- vv
- Signal that has been retrieved.
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