Get the sample time of an input port
real_T ssGetInputPortSampleTime(SimStruct *S, int_T inputPortIdx)
SimStruct that represents an S-Function block.
Index of port whose sample time is required.
real_T value indicating the sample time of the input port
specified by the index
Use in any routine (except
mdlInitializeSizes) to determine the
sample time of an input 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.
See the S-function
sfun_multirate.c used in
Introduced before R2006a