Start Simulink Model with App Designer and run simultaneously
3 ビュー (過去 30 日間)
古いコメントを表示
Ahmet Sahin
2019 年 9 月 17 日
コメント済み: Juan José Bolaños Castilo
2020 年 11 月 26 日
Hello,
I have an App which changes Values of Simulink blocks with the set_param command.
My problem is that I have to start the Simulink Model myself because I couldn't find any command with which I could start the simulation via Code AND run the App simultaneously.
With the sim command I was able to start the simulation but my App stopped executing until the Simulink Model stopped, so the sim command is not the right command for me.
I was able to find a workaround with the Callback ability of Simulink Blocks but it is not the perfect solution for me, because with this way I need to start the simulation and the App starts afterwards. The problem is, that my App is the "mother" of all the Functions and the simulation so I want to start the App first...
I hope You can help me to find a solution to my problem.
Thank You very much!
4 件のコメント
Fangjun Jiang
2019 年 9 月 17 日
Okay, then add code in your app to open and simulate the model. Then, just run the app.
採用された回答
Fangjun Jiang
2019 年 9 月 17 日
f14;
set_param('f14','SimulationCommand','start');
set_param('f14','SimulationCommand','stop')
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!