| Contents | Index |
DTypeId ssGetOutputPortDataType(SimStruct *S, int_T port)
The data type ID of the output port specified by the index port. Returns DYNAMICALLY_TYPED if the output port inherits its data type.
Use ssGetOuputPortDataType 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 |
|---|---|
| 0 | SS_DOUBLE |
| 1 | SS_SINGLE |
| 2 | SS_INT8 |
| 3 | SS_UINT8 |
| 4 | SS_INT16 |
| 5 | SS_UINT16 |
| 6 | SS_INT32 |
| 7 | SS_UINT32 |
| 8 | SS_BOOLEAN |
C, C++
See the S-function sfun_dtype_io.c used in sfcndemo_dtype_io.mdl.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |