Writing S-Functions    
ssSetSFcnParamTunable

Make a block parameter tunable.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

param
   Index of the parameter.

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

C

See Also
ssGetSFcnParamsCount


  ssSetSFcnParamNotTunable ssSetSolverNeedsReset