Get the width of an output port
int_T ssGetOutputPortWidth(SimStruct *S, int_T port)
S
SimStruct representing an S-Function block.
port
Index of an output port.
An int_T
value indicating the width of the output port
specified by the index port
.
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.
C, C++
See the S-function sfun_zc.c
used in sfcndemo_sfun_zc
and the S-function sfun_dtype_io.c
used in sfcndemo_dtype_io
.