Writing S-Functions | ![]() ![]() |
Set the data type of an input port.
C Syntax
Ada Syntax
Arguments
S
SimStruct representing an S-Function block or a Simulink model.
ID of the data type accepted by port
.
Description
Use this function in mdlInitializeSizes
to set the data type of the input port specified by port
. If the input port's data type is inherited from the block connected to the port, set the data type to DYNAMICALLY_TYPED
.
Languages
Example
Suppose that you want to create an S-function with two input ports, the first of which inherits its data type from the driving block and the second of which accepts inputs of type int8_T
. The following code sets up the data types.
See Also
ssGetInputPortDataType
![]() | ssSetInputPortComplexSignal | ssSetInputPortDimensionInfo | ![]() |