ssUpdateDlgParamAsRunTimeParam
Update a run-time parameter that corresponds to a dialog parameter
Syntax
void ssUpdateDlgParamAsRunTimeParam(SimStruct *S, int_T rtIdx)
Arguments
-
S
-
SimStruct representing an S-Function block.
-
rtIdx
-
指数运行时参数。
Description
Use inmdlProcessParameters
to set the value of the run-time parameter specified byrtIdx
to the current value of its corresponding dialog parameter. UsessRegDlgParamAsRunTimeParam
to associate a dialog parameter with a run-time parameter. If necessary,ssUpdateDlgParamAsRunTimeParam
converts the data type of the dialog parameter value to the data type specified bydtId
, the data type ID specified inssRegDlgParamAsRunTimeParam
.
Languages
C, C++
Example
See the S-functionsfun_runtime3.c
used insfcndemo_runtime
.