Loading Simulink model in the background

7 ビュー (過去 30 日間)
Simon Mürwald
Simon Mürwald 2017 年 2 月 16 日
コメント済み: Steve Miller 2018 年 1 月 31 日
Hello,
I want to optimize the runtime of my Simulink/SimScape model. I have a GUI to set parameters for the Simulation and then start the from the GUI. When starting the Simulation for the first time the Simulation Process takes nearly 20 seconds, but if the Simulation has been started before the process just takes 5 to 10 seconds.
That means if I can load the Simulink model while the GUI is running, it could save half the time for the Simulation.
Is there a way to preload a Simulink model, without slowing down the GUI?
Thanks in advance.
  4 件のコメント
Ganesh Hegade
Ganesh Hegade 2017 年 2 月 16 日
I am not sure how to run both GUI and Simulink parallel. Hope someone will give more suitable answer for this.
Steve Miller
Steve Miller 2018 年 1 月 31 日
The first time you load a model, it will always take extra time. Subsequent runs do not take as long for the model is stored in memory. I am not exactly sure what your situation is, but I would certainly look into Fast Restart. If all your UI is doing is changing parameter values, it will probably speed things up even further if you can use it. For the Simscape part of your model, make sure you are using run-time parameters. --Steve

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeElectrical Sensors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by