Main Content

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

的下一个示例。

Description

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

Languages

C, C++

Example

See the S-functionvsfunc.cused insfcndemo_vsfunc.

Introduced before R2006a