Writing S-Functions | ![]() ![]() |
Set the period of a sample time.
C Syntax
void ssSetSampleTime(SimStruct *S, st_index, time_T period)
Ada Syntax
procedure ssSetSampleTime(S : in SimStruct; Period : in time_T;
st_index : in time_T := 0.0);
Arguments
S
SimStruct representing an S-function block.
st_index
Description
Use this macro in mdlInitializeSizes
to specify the "period" of the sample time where st_index
starts at 0.
Languages
See Also
ssGetSampleTime, ssSetInputPortSampleTime, ssSetOutputPortSampleTime, ssSetOffsetTime
![]() | ssSetRunTimeParamInfo | ssSetSFcnParamNotTunable | ![]() |