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.
Objects
Application | Represent application files on development computer (Since R2020b) |
Instrument | Create real-time instrument object (Since R2020b) |
slrealtime.instrument.LineStyle | Create real-time instrument LineStyle object (Since R2022b) |
ParameterSet | Real-time application parameter set (Since R2021a) |
Target | Represent real-time application and target computer status (Since R2020b) |
Stimulation | Target computer model root inport stimulator object (Since R2021a) |
Functions
slrealtime | Interface for managing target computer (Since R2020b) |
compare | Compare the parameters in two parameter set objects (Since R2023b) |
clearDefaultParamSet | Clear default parameter set on target computer (Since R2024a) |
delete | Deletes a ParameterSet object (Since R2021a) |
explorer | Open Parameter Explorer and view Parameter Set (Since R2021a) |
exportParamSet | Write ParameterSet object data to parameter set file (Since R2021a) |
exportToModel | Export values from ParameterSet object to model (Since R2021a) |
getCurrentParamSet | Get current parameter set on target computer (Since R2024a) |
getDefaultParamSet | Get default parameter set on target computer (Since R2024a) |
importParamSet | Create ParameterSet object (Since R2021a) |
listParamSet | List available parameter set files for application (Since R2021a) |
loadParamSet | Restore parameter values saved in specified file (Since R2021a) |
resolve | Compare parameter set differences and output resolved parameter set object (Since R2023b) |
saveParamSet | Save real-time application parameter values (Since R2021a) |
set | Set a parameter value in a ParameterSet object (Since R2021a) |
setDefaultParamSet | Set default parameter set on target computer (Since R2024a) |
syncWithApp | Sync model parameters to real-time application parameters (Since R2021a) |
addParamSet | Add a parameter set to a real-time application (Since R2021a) |
updateStartupParameterSet | Update the startup parameter set for an application (Since R2021a) |
Topics
Background
- 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 Simulink Real-Time Explorer
Save real-time application parameter values to a file on the target computer. - 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.
Limitations
- 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 for Simulink Real-Time
Learn about Simulink® Real-Time™ support for internationalization.