ssGetSFcnParamUnit
Get unit of S-function parameter
Since R2024a
Syntax
UnitId ssGetSFcnParamUnit(SimStruct *S,int_T parIdx);
Arguments
S
SimStruct that represents an S-Function block.
port
Index of s-function parameter.
Returns
The unit ID of the parameter specified by parIdx
. This ID is
returned from the ssRegisterUnitFromExpr
method. Returns
DYNAMICALLY_TYPED
if the input port inherits its unit.
Description
Use ssGetSFcnParamUnit
to obtain the unit of a particular
input port.
Languages
C, C++
Examples
UnitId id = ssGetSFcnParamUnit(S,0);
See Also
ssSetSFcnParamUnit
, mdlInitializeSizes
, ssGetNumInputPorts
, ssRegisterUnitFromExpr
, ssSetInputPortUnit
, ssSetOutputPortUnit
, ssGetOutputPortUnit
Version History
Introduced in R2024a