Writing S-Functions | ![]() ![]() |
Make a block parameter tunable.
Syntax
Arguments
S
SimStruct representing an S-Function block.
isTunable
Valid values are 1 (tunable) or 0 (not tunable).
Description
Use this macro in mdlInitializeSizes
to specify whether a user can change a dialog parameter during the simulation. The parameter 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.
Languages
See Also
ssGetSFcnParamsCount
![]() | ssSetSFcnParamNotTunable | ssSetSolverNeedsReset | ![]() |