Writing S-Functions Previous page   Next Page
ssSetOutputPortDataType

Set the data type of an output port

C Syntax

Ada Syntax

Arguments

S
   SimStruct representing an S-Function block or a Simulink model.

port
   Index of an output port.

ID of the data type accepted by port.

Description

Use this function in mdlInitializeSizes to set the data type of the output port specified by port. If the output port's data type is determined dynamically, for example, from the data type of a block parameter, set the data type to DYNAMICALLY_TYPED.

Languages

Ada, C

Example

Suppose that you want to create an S-function with two output ports, the first of which gets its data type from a block parameter and the second of which outputs signals of type int16_T. The following code sets up the data types.

See Also

ssGetOutputPortDataType


Previous page  ssSetOutputPortComplexSignal ssSetOutputPortDimensionInfo Next page

© 1994-2005 The MathWorks, Inc.