Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Example

See the S-function sfun_multiport.c used in sfcndemo_sfun_multiport and the S-function sfun_dtype_io.c used in sfcndemo_dtype_io.

Introduced before R2006a

Was this topic helpful?