Get unit of input port
UnitId ssGetInputPortUnit(SimStruct *S,int_T port);
S
SimStruct representing an S-Function block.
port
Index of an input port.
The unit ID of the input port specified by port
. This ID is
returned from the ssRegisterUnitFromExpr
method. Returns
DYNAMICALLY_TYPED
if the input port inherits its unit.
Use ssGetInputPortUnit
to obtain the unit of a particular
input port.
C, C++
UnitId id = ssGetInputPortUnit(S,0);
mdlInitializeSizes
, ssGetNumInputPorts
, ssRegisterUnitFromExpr
, ssSetInputPortUnit
, ssSetOutputPortUnit
, ssGetOutputPortUnit