Skip to Main Content Skip to Search
Product Documentation

ssGetNumOutputPorts - Get the number of output ports that a block has

Syntax

int_T ssGetNumOutputPorts(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

An int_T value indicating the number of output ports.

Description

Use in any routine (except mdlInitializeSizes) to determine how many output ports a block has.

Languages

C, C++

Example

See the S-function sfun_multiport.c used in sfcndemo_sfun_multiport.mdl.

See Also

ssGetNumInputPorts

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS