Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssSetSFcnParamNotTunable - Make a block parameter nontunable

Syntax

void ssSetSFcnParamNotTunable(SimStruct *S, int_T index)

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, C++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_multirate.c used in sfcndemo_sfun_multirate.mdl and the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_port_triggered.c used in sfcndemo_port_triggered.mdl.

See Also

ssSetSFcnParamTunable, ssGetSFcnParamsCount

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS