Writing S-Functions    
ssSetNumOutputPorts

Specify the number of output ports that a block has.

C Syntax

Ada Syntax

Arguments

S
   SimStruct representing an S-Function block.

nOutputPorts
   Number of output ports on the block represented by S. Must be a nonnegative integer.

Description

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

where ssSetNumOutputPorts returns 0 if nOutputPorts is negative or an error occurs while creating the ports. When this occurs, and you return out of your S-function, Simulink displays an error message.

Languages

Ada, C

See Also
ssSetInputPortWidth, ssSetNumInputPorts


  ssSetNumNonsampledZCs ssSetNumPWork