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 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.

Languages

Ada, C

See Also

ssSetInputPortSampleTime, ssSetOutputPortSampleTime, ssSetOffsetTime


  ssSetRunTimeParamInfo ssSetSFcnParamNotTunable