Main Content

Parameter Tuning with MATLAB

Tunable block and global parameter updating, parameter sweeps, extreme value tests

Query and modify tunable block and global parameters with MATLAB® in your real-time application as it is running. Perform parameter sweeps and extreme value tests.


ApplicationRepresent application files on development computer
InstrumentCreate real-time instrument object
ParameterSetReal-time application parameter set
TargetRepresent real-time application and target computer status
StimulationTarget computer model root inport stimulator object


slrealtimeInterface for managing target computer
deleteDeletes a ParameterSet object
explorerOpen Parameter Explorer and view Parameter Set
exportParamSetWrite ParameterSet object data to parameter set file
exportToModelExport values from ParameterSet object to model
importParamSetCreate ParameterSet object
listParamSetList available parameter set files for application
loadParamSetRestore parameter values saved in specified file
saveParamSetSave real-time application parameter values
setSet a parameter value in a ParameterSet object
syncWithAppSync model parameters to real-time application parameters
addParamSetAdd a parameter set to a real-time application
updateStartupParameterSetUpdate the startup parameter set for an application



Tunable Block Parameters and Tunable Global Parameters

Changing tunable block parameters and tunable global parameters during real-time execution.

Parameter Tuning

Tune Parameters by Using MATLAB Language

Change block parameters while your real-time application is running on the target computer.

Tune Inlined Parameters by Using MATLAB Language

Tune inlined parameters that have been made tunable with MATLAB variables.

Tune Parameter Structures by Using MATLAB Language

Organize related parameters into a structure and use the structure to tune parameters.

Save and Reload Parameters by Using the MATLAB Language

Save real-time application parameter values to a file on the target computer.

MATLAB Interface

Target and Application Objects

Use the MATLAB Command Window to change properties and control the target computer and your real-time application.

Instrumentation Apps for Real-Time Applications

Interface with your real-time application by using instrument panel apps.


Troubleshoot Parameters Not Accessible by Name

Investigate issues that prevent you from observing or tuning some parameters in the real-time application.

Troubleshoot Instance-Specific Parameters Not Saved

Investigate issues that prevent saving instance-specific parameters and parameters with custom storage classes to a MAT file.

Internationalization Issues

Learn about Simulink® Real-Time™ support for internationalization.