Hi Jack
Kindly refer to the following steps to tune parameters in the Variable Tuner app in real time while the model is running.
1. Make sure your Simulink model uses workspace variables (like MATLAB variables or Simulink.Parameter objects) for the parameters you want to tune as follows
2. Open the Variable Tuner from the Simulink toolstrip or run -
3. In the Variable Tuner app:
- Click "Add Variables"
- Select the variables from the base workspace or from the model that you want to tune.
4. Run the Model and Tune in Real Time
- Start the model in External or Normal simulation mode (depending on your workflow).
- Adjust parameter values from the Variable Tuner.
- You can also log or plot responses to see the effect in real time.
I hope this helps