Get the numeric type (complex or real) of an output port
CSignal_T ssGetOutputPortComplexSignal(SimStruct *S, int_T port)
S
SimStruct representing an S-Function block.
port
Index of an output port.
COMPLEX_YES
(1
) if port
accepts complex signals, COMPLEX_NO
(0
) if
port
does not accept complex signals, and
COMPLEX_INHERITED
(-1
) if
port
inherits its numeric type from the port to which it is
connected.
Use to obtain the numeric type of the output port specified by the index
port
.
C, C++
See the S-function sfun_cplx.c
used in sfcndemo_cplx
.