Writing S-Functions | ![]() ![]() |
Register a dialog parameter as a run-time parameter.
Syntax
Arguments
S
SimStruct representing an S-Function block or a Simulink model.
dlgIdx
Index of the dialog parameter
rtIdx
Index of the run-time parameter
dtId
Value of type DTypeId
that specifies the data type of the run-time parameter
Description
Use this function in mdlSetWorkWidths
to register the dialog parameter specified by dlgIdx
as a run-time parameter specified by rtIdx
and having the name and data type specified by name
and dtId
, respectively. This function also initializes the run-time parameter to the initial value of the dialog parameter, converting the value to the specified data type if necessary.
Languages
See Also
ssRegAllTunableParamsAsRunTimeParams
![]() | ssPrintf | ssRegAllTunableParamsAsRunTimeParams | ![]() |