Main Content

ssGetOutputPortUnit

Get unit of output port

Syntax

UnitId ssGetOutputPortUnit(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 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++

Examples

UnitId id = ssGetOutputPortUnit(S,0);

Version History

Introduced in R2016b