Update the value of a run-time parameter
void ssUpdateRunTimeParamData(SimStruct *S, int_T param, void *data)
S
SimStruct representing an S-Function block.
param
Index of the run-time parameter.
data
New value of the parameter.
Use this macro in the S-function's mdlProcessParameters
method
to update the value of the run-time parameter specified by
param
.
C, C++
See the S-functions sfun_runtime2.c
and sfun_runtime4.c
, both used in sfcndemo_runtime
.
mdlProcessParameters
, ssGetRunTimeParamInfo
, ssUpdateAllTunableParamsAsRunTimeParams
, ssRegAllTunableParamsAsRunTimeParams