Main Content

ssRegAllTunableParamsAsRunTimeParams

Register all tunable parameters as run-time parameters

Syntax

void ssRegAllTunableParamsAsRunTimeParams(SimStruct *S, const char_T *names[])

Arguments

S

SimStruct that represents an S-Function block.

names

Array of names for the run-time parameters.

Description

Use this function in mdlSetWorkWidths to register all tunable dialog parameters as run-time parameters. Specify the names of the run-time versions of the parameters in the names array.

Note

The Simulink® engine assumes that the names array is always available. Therefore, you must allocate the names array in such a way that it persists throughout the simulation.

You can register dialog parameters individually as run-time parameters, using ssSetNumRunTimeParams and ssSetRunTimeParamInfo. See Create and Update S-Function Run-Time Parameters for more information.

Languages

C, C++

Examples

See the S-function sfun_cplx.c used in sfcndemo_cplx and the S-function sfun_matadd.c used in sfcndemo_matadd.

Version History

Introduced before R2006a