Contents

ssGetOutputPortDataType

Get the data type of an output port

Syntax

DTypeId ssGetOutputPortDataType(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-function block.

port

Index of an output port.

Returns

The data type ID of the output port specified by the index port. Returns DYNAMICALLY_TYPED if the output port inherits its data type.

Description

Use ssGetOutputPortDataType to obtain the data type ID of a particular output port. The following table is a list of built-in data types associated with the index DTypeId.

Integer Data Type ID (DTypeId)Built-in Data Type
0SS_DOUBLE
1SS_SINGLE
2SS_INT8
3SS_UINT8
4SS_INT16
5SS_UINT16
6SS_INT32
7SS_UINT32
8SS_BOOLEAN

Languages

C, C++

Was this topic helpful?