Writing S-Functions | ![]() ![]() |
Make a block parameter tunable.
Syntax
void ssSetSFcnParamTunable(SimStruct *S, int_T param, int_T isTunable)
Arguments
S
SimStruct representing an S-function block.
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 provide errors handling in the event that an attempt is made to change the parameter.
Languages
See Also
ssGetSFcnParamsCount
![]() | ssSetSFcnParamNotTunable | ssSetSolverNeedsReset | ![]() |