ssGetInputPortUnit
Get unit of input port
Syntax
UnitId ssGetInputPortUnit(SimStruct *S,int_T port);
Arguments
SSimStruct that represents an S-Function block.
portIndex of an input port.
Returns
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.
Description
Use ssGetInputPortUnit to obtain the unit of a particular
input port.
Languages
C, C++
Examples
UnitId id = ssGetInputPortUnit(S,0);
See Also
mdlInitializeSizes, ssGetNumInputPorts, ssRegisterUnitFromExpr, ssSetInputPortUnit, ssSetOutputPortUnit, ssGetOutputPortUnit
Version History
Introduced in R2016b