Documentation Center

  • Trial Software
  • Product Updates

Contents

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++

Was this topic helpful?