ssGetNumInputPorts

Get the number of input ports that a block has

Syntax

int_T ssGetNumInputPorts(SimStruct *S)

Arguments

S

SimStruct representing an S-function block.

Returns

An int_T value indicating the number of input ports.

Description

Use in any routine (except mdlInitializeSizes) to determine how many input ports an S-Function block has.

Languages

C, C++

Was this topic helpful?