Main Content

ssGetOffsetTime

Get one of an S-function's sample time offsets.

Syntax

time_T ssGetOffsetTime(SimStruct *S, int_T sti);

Arguments

S

SimStruct that represents an S-Function block.

sti

Index of sample time offset to be returned

Returns

A time_T value indicating the sample time offset.

Description

Use to obtain the sample time offset of S corresponding to the index sti. See matlabroot/extern/include/tmwtypes.h for a description of the time_T data type.

Languages

C, C++

Examples

See the S-function sfun_zc_sat.c used in sfcndemo_sfun_zc_sat.

Version History

Introduced before R2006a