Documentation

Run-Time Parameters

Create, update and access run-time parameters for S-Function blocks

S-Function Callback Methods

mdlSetWorkWidthsSpecify the sizes of the work vectors and create the run-time parameters required by this C MEX S-function
mdlCheckParametersCheck the validity of a C MEX S-function's parameters
mdlProcessParametersProcess the C MEX S-function's parameters

SimStruct Functions

ssGetNumRunTimeParamsGet the number of run-time parameters created by this S-function
ssGetRunTimeParamInfoGet the attributes of a run-time parameter
ssRegAllTunableParamsAsRunTimeParamsRegister all tunable parameters as run-time parameters
ssRegDlgParamAsRunTimeParamRegister a dialog parameter as a run-time parameter
ssSetNumRunTimeParamsSpecify the number of run-time parameters created by this S-function
ssSetRunTimeParamInfoSpecify the attributes of a run-time parameter
ssUpdateAllTunableParamsAsRunTimeParamsUpdate the values of run-time parameters to be the same as those of the corresponding tunable dialog parameters
ssUpdateDlgParamAsRunTimeParamUpdate a run-time parameter that corresponds to a dialog parameter
ssUpdateRunTimeParamDataUpdate the value of a run-time parameter
ssUpdateRunTimeParamInfoUpdate the attributes of a run-time parameter

Examples and How To

Run-Time Parameters

How to create and use run-time parameters.

Concepts

S-Function Callback Methods

Description of S-function callback methods

S-Function SimStruct Functions

Overview of SimStruct macros and functions.

Was this topic helpful?