Writing S-Functions    
ssSetSampleTime

Set the period of a sample time.

C Syntax

Ada Syntax

Arguments
S
   SimStruct representing an S-function block.

st_index
   Index of 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.

Languages

Ada, C

See Also

ssGetSampleTime, ssSetInputPortSampleTime, ssSetOutputPortSampleTime, ssSetOffsetTime


 ssSetRunTimeParamInfo ssSetSFcnParamNotTunable