ssGetOutputPortWidth - Get the width of an output port
Syntax
int_T ssGetOutputPortWidth(SimStruct *S, int_T port)
Arguments
- S
SimStruct representing an S-Function block.
- port
Index of an output port.
Returns
An int_T value indicating the width of the
output port specified by the index port.
Description
Use in any routine (except mdlInitializeSizes)
to determine the width of an output port where the output port index
starts at 0 and must be less than the number of output ports.
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_zc.c used
in sfcndemo_sfun_zc.mdl and
the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_dtype_io.c used
in sfcndemo_dtype_io.mdl.
See Also
ssSetOutputPortWidth
 | ssGetOutputPortSignal | | ssGetParentSS |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit