Writing S-Functions    
ssSetSFcnParamNotTunable

Make a block parameter nontunable.

Syntax

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.

Languages

C

See Also
ssSetSFcnParamTunable, ssGetSFcnParamsCount


  ssSetSampleTime ssSetSFcnParamTunable