| Writing S-Functions | ![]() |
Make a block parameter tunable
Syntax
Arguments
S
SimStruct representing an S-Function block.
isTunable
Valid values are SS_PRM_TUNABLE (tunable), SS_PRM_NOT_TUNABLE (not tunable), or SS_PRM_SIM_ONLY_TUNABLE (tunable only during simulation).
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.
If you specify the SS_PRM_TUNABLE option, you must create a corresponding run-time parameter (see Creating Run-Time Parameters). You do not have to create a corresponding run-time parameter if you specify the SS_PRM_SIM_ONLY_TUNABLE option.
Languages
See Also
| ssSetSFcnParamNotTunable | ssSetSolverNeedsReset | ![]() |
© 1994-2005 The MathWorks, Inc.