ssGetInputPortUnit

Get unit of input port

Syntax

UnitId ssGetInputPortUnit(SimStruct *S,int_T port);

Arguments

S

SimStruct representing 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++

Example

UnitId id = ssGetInputPortUnit(S,0);

Introduced in R2016b