Main Content

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 inmdlProcessParametersto set the value of the run-time parameter specified byrtIdxto the current value of its corresponding dialog parameter. UsessRegDlgParamAsRunTimeParamto associate a dialog parameter with a run-time parameter. If necessary,ssUpdateDlgParamAsRunTimeParamconverts 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.cused insfcndemo_runtime.

Version History

Introduced before R2006a