Writing S-Functions | ![]() ![]() |
Get the current time for the current task.
Syntax
ssGetTaskTime(SimStruct *S, st_index)
Arguments
S
SimStruct representing an S-function block.
Description
Returns the current time (time_T
) of the task corresponding to the sample rate specified by st_index
. You can use this macro in mdlOutputs
and mdlUpdate
to compute the output of your block.
Languages
See Also
ssGetT
![]() | ssGetTNext | ssGetTFinal | ![]() |