Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssSetTNext - Set the time of the next sample hit

Syntax

void ssSetTNext(SimStruct *S, time_T tnext)

Arguments

S

SimStruct representing an S-Function block.

tnext

Time of the next sample hit.

Description

A discrete S-function with a variable sample time should use this macro in mdlGetTimeOfNextVarHit to specify the time of the next sample hit.

Languages

C, C++

Example

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

See Also

ssGetTNext, ssGetT, mdlGetTimeOfNextVarHit

  


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