Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Index of the run-time parameter.

Description

Use in mdlProcessParameters to set the value of the run-time parameter specified by rtIdx to the current value of its corresponding dialog parameter. Use ssRegDlgParamAsRunTimeParam 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 by dtId, the data type ID specified in ssRegDlgParamAsRunTimeParam.

Languages

C, C++

Example

See the S-function sfun_runtime3.c used in sfcndemo_runtime.

Introduced before R2006a

Was this topic helpful?