Main Content

ssGetOutputPortUnit

Get unit of output port

Syntax

UnitId ssGetOutputPortUnit(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 output port specified by port. Returns DYNAMICALLY_TYPED if the output port inherits its unit.

Description

Use ssGetOutputPortUnit to obtain the unit of a particular output port.

Languages

C, C++

Example

UnitId id = ssGetOutputPortUnit(S,0);
Introduced in R2016b