Writing S-Functions Previous page   Next Page
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

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.

Languages

Ada, C

See Also

ssSetInputPortWidth, ssSetNumOutputPorts


Previous page  ssSetNumDWork ssSetNumIWork Next page

© 1994-2005 The MathWorks, Inc.