| Contents | Index |
time_T ssGetT(SimStruct *S)
A value of type time_T indicating the current simulation time.
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.
Note Use this macro only if your block operates at the base rate of the model, for example, if your block operates at a single continuous rate. If your block operates at multiple rates or operates at a single rate that is different from the model's base, use ssGetTaskTime to get the correct time for the current task. |
C, C++
See the S-function vsfunc.c used in sfcndemo_vsfunc.mdl.
ssGetTaskTime, ssGetTStart, ssGetTFinal

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |