Get one of an S-function's sample times.
time_T ssGetSampleTime(SimStruct *S, int_T sti);
SimStruct representing an S-Function block.
Index of the sample time to be returned.
time_T value indicating the sample time associated with the
Use to obtain the sample time of
S corresponding to the sample
for a description of the
time_T data type.
ssGetSampleTime for computations can make your
S-function sample time dependent. Use
so that Simulink® displays an error when your S-function is used in an inappropriate
The following statement
time_T t = ssGetSampleTime(S, 0);
returns the S-function's current sample time.