ssGetTFinal
Get the simulation stop time
Syntax
time_T ssGetTFinal(SimStruct *S)
Arguments
SSimStruct that represents an S-Function block.
Returns
A value of type time_T.
Description
Use to query the stop time of the current simulation. See
for a description of the
matlabroot/extern/include/tmwtypes.htime_T data type.
For noninlined S-Function blocks, this function behaves in the following ways:
For simulation,
ssGetTFinalreturns the value of Stop time.For code generation,
If generation terminates at Stop time,
ssGetTFinalreturns the value of Stop time.When the Stop time is
inf,ssGetTFinalreturns the value of —1.If the generated code runs indefinitely and regardless of the value of Stop time,
ssGetTFinalreturns the value of —1.
Languages
C, C++
See Also
Version History
Introduced before R2006a