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

Outputs

vv
Signal that has been retrieved.
Type:
Dimension:

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