Struggling to use Variable Tuner in Simulink App Designer

조회 수: 6 (최근 30일)
Jack Daniels
Jack Daniels 2025년 7월 17일
댓글: Jack Daniels 2025년 7월 22일
I want to correctly use the VariableTuner
I want to add to the variables my simulink model parametres for tunning, displaying and tuning from my simulink model so how add those variables for tunning ?
How to work with VariableTunner to add variable and tune the variables in runtime?

답변 (1개)

Shishir Reddy
Shishir Reddy 2025년 7월 18일
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
gain = 5;
2. Open the Variable Tuner from the Simulink toolstrip or run -
variableTuner(modelName)
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
  댓글 수: 1
Jack Daniels
Jack Daniels 2025년 7월 22일
I'm adding "VariableTuner" into App as shown and I want add variable there - but how? there is no option to add ...

댓글을 달려면 로그인하십시오.

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by