Skip to Main Content Skip to Search
Product Documentation

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

Syntax

time_T ssGetOffsetTime(SimStruct *S, int_T sti);

Arguments

S

SimStruct representing 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++

Example

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

See Also

ssSetOffsetTime, ssGetSampleTime

  


Related Products & Applications

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