Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 vsfunc.c used in sfcndemo_vsfunc.

Introduced before R2006a

Was this topic helpful?