Writing S-Functions Previous page   Next Page
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


Previous page  ssSetSampleTime ssSetSFcnParamTunable Next page

© 1994-2005 The MathWorks, Inc.