Get the fixed step size of the model containing the S-function.
time_T ssGetFixedStepSize(SimStruct *S)
S
SimStruct representing an S-Function block.
A time_T
value indicating the fixed step size of the model
containing the S-function if the model is configured to use a fixed-step solver.
Otherwise returns 0
.
Use this macro in methods called after the compilation phase, i.e., in
mdlSetWorkWidths
or later, to obtain the fixed step size of
the model containing the S-function. See
for a description of the
matlabroot
/extern/include/tmwtypes.htime_T
data type.
C, C++
The following lines get and display the fixed step size.
time_T fss = ssGetFixedStepSize(S); ssPrintf("Fixed step size : %g\n",fss);