Writing S-Functions | ![]() ![]() |
Specify the number of input ports that a block has.
C Syntax
Ada Syntax
Arguments
S
SimStruct representing an S-Function block.
nInputPorts
Number of input ports on the block represented by S
. Must be a nonnegative integer.
Description
Use in mdlInitializeSizes
to set the number of input ports to a nonnegative integer. Invoke it using
where ssSetNumInputPorts
returns 0 if nInputPorts
is negative or an error occurs while creating the ports. When this happens, Simulink displays an error.
Languages
See Also
ssSetInputPortWidth, ssSetNumOutputPorts
![]() | ssSetNumDWork | ssSetNumIWork | ![]() |