Main Content

ssGetInputPortUnit

Get unit of input port

Syntax

UnitId ssGetInputPortUnit(SimStruct *S,int_T port);

Arguments

S

SimStruct that represents an S-Function block.

port

Index 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);

Version History

Introduced in R2016b