Writing S-Functions | ![]() ![]() |
Get the current simulation time.
C Syntax
ssGetT(SimStruct *S)
Ada Syntax
function ssGetT(S : in SimStruct) return Real_T;
Arguments
S
SimStruct representing an S-function block.
Description
Returns the current base simulation time (time_T
) for the model. You can use this macro in mdlOutputs
and mdlUpdate
to compute the output of your block.
Languages
See Also
ssGetTaskTime, ssGetTStart, ssGetTFinal
![]() | ssGetStateAbsTol | ssGetTNext | ![]() |