ssSetSFcnParamNotTunable - Make a block parameter nontunable
Syntax
void ssSetSFcnParamNotTunable(SimStruct *S, int_T index)
Arguments
- S
SimStruct representing an S-Function block.
- index
Index of the parameter to be made nontunable.
Description
Use this macro in mdlInitializeSizes to specify
that a parameter doesn't change during the simulation, where index starts
at 0 and is less than ssGetSFcnParamsCount(S).
This improves efficiency and provides error handling in the event
that an attempt is made to change the parameter.
Note
This macro is obsolete. It is provided only for compatibility
with S-functions created with earlier Simulink product versions.
Use ssSetSFcnParamTunable to
set tunability of S-function parameters in new S-functions. |
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used
in sfcndemo_sfun_multirate.mdl and
the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_port_triggered.c used
in sfcndemo_port_triggered.mdl.
See Also
ssSetSFcnParamTunable, ssGetSFcnParamsCount
 | ssSetSampleTime | | ssSetSFcnParamTunable |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit