Writing S-Functions    
ssSetNumInputPorts

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

Used in mdlInitializeSizes to set to the number of input ports to a nonnegative integer. It should be invoked using

where ssSetNumInputPorts returns 0 if nInputPorts is negative or an error occurred while creating the ports. When this occurs, Simulink displays an error.

Languages

Ada, C

See Also
ssSetInputPortWidth, ssSetNumOutputPorts


 ssSetNumDWork ssSetNumIWork