vssGetOutputDataType
Get output data type of a certain block
Syntax
vssGetOutputDataType(block,varidx)
vv = vssGetOutputDataType(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
Flag used in an OML Custom Block, whose output that is triggered is defined with the help from vssGetOutputDataType
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