MATLAB Answers

Setting/Tuning parameters of a Simulink model in Realtime

조회 수: 2(최근 30일)
Haitham Elsayed
Haitham Elsayed 20 May 2019
답변: Jonas 16 Sep 2019
I am currently working on a desgin of a GUI for a Real-time Simulink model. The problem I am facing is that in real-time I have no access to all the parmeters in my model like the resistance or capacitance.
I simulated a simple model for illustration and I attached the screenshots.
In addition , I also tried to use instrument panel in Simulink Real-time explorer to tune the parameters in realtime but I had the same problem which is the limitation of the parameters I can tune.

  댓글 수: 0

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

답변(2개)

Diego Kuratli
Diego Kuratli 15 Sep 2019
Instead of the Resistor and Capacitor blocks, use Variable Resistor and Variable Capacitor.

  댓글 수: 0

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


Jonas
Jonas 16 Sep 2019
I believe Diego's suggestion will help.
I would also suggest to use Simulink Parameter variables inside the Model workspace and change those instead of the values inside the blocks directly.

  댓글 수: 0

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

Community Treasure Hunt

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

Start Hunting!

Translated by