Get the sample time of an output port
real_T ssGetOutputPortSampleTime(SimStruct *S, int_T outputPortIdx)
S
SimStruct representing an S-Function block.
outputPortIdx
Index of an output port.
A real_T
value indicating the sample time of the output port
specified by the index outputPortIdx
.
Use in any routine (except mdlInitializeSizes
) to determine the
sample time of an output port. You should use this macro only if you have specified
the sample times as port-based. Use ssGetSampleTime
to determine the
sample time of S-functions that do not use port-based sample times.
C, C++
See the S-function sfun_multirate.c
used in sfcndemo_sfun_multirate
.