| Contents | Index |
void ssRegAllTunableParamsAsRunTimeParams(SimStruct *S, const char_T *names[])
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 Run-Time Parameters for more information.
C, C++
See the S-function sfun_cplx.c used in sfcndemo_cplx.mdl and the S-function sfun_matadd.c used in sfcndemo_matadd.mdl.
mdlSetWorkWidths, ssSetNumRunTimeParams, ssSetRunTimeParamInfo

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |