Writing S-Functions Previous page   Next Page
ssSetSampleTime

Set the period of a sample time

C Syntax

Ada Syntax

Arguments

S
   SimStruct representing an S-Function block.

st_index
   Index of the sample time whose period is to be set.

period
   Period of the sample time specified by st_index.

Description

Use this macro in mdlInitializeSizes to specify the period of the sample time where st_index starts at 0. See Setting Sample Times and Offsets for more information.

Languages

Ada, C

See Also

ssSetInputPortSampleTime, ssSetOutputPortSampleTime, ssSetOffsetTime


Previous page  ssSetRunTimeParamInfo ssSetSFcnParamNotTunable Next page

© 1994-2005 The MathWorks, Inc.