Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssGetT - Get the current simulation time

Syntax

time_T ssGetT(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

A value of type time_T indicating the current simulation time.

Description

Use to determine 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. See matlabroot/extern/include/tmwtypes.h for a description of the time_T data type.

Languages

C, C++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/vsfunc.c used in sfcndemo_vsfunc.mdl.

See Also

ssGetTaskTime, ssGetTStart, ssGetTFinal

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS