How to a GUI directly in Simulink Model?
조회 수: 20 (최근 30일)
이전 댓글 표시
Is it possible to display a GUI directly in a Simulink model ?
The GUI can be used for entering values or for selection of Variables before simulation. What it avoids is the double click required to open the GUI and shows the selected parameters.
댓글 수: 0
채택된 답변
ES
2017년 3월 28일
You can invoke a gui from a block. Create an empty subsystem. In its open function, you can call the GUI. In the GUI you can set all the parameters in one window and then start the simulation.
댓글 수: 1
추가 답변 (1개)
dbmn
2017년 3월 28일
Not sure what you want to do exactly (or why you want to do that).
What version are you using?
- If you use one of the newer releases, the Dashboard Library might be a nice starting point. https://de.mathworks.com/help/simulink/ug/tune-and-visualize-your-model-with-dashboard-blocks.html
- Or you could build a GUI (with AppDesigner, Guide or by hand) that sets some parameters in your workspace and then starts a simulation with the sim(...) command.
댓글 수: 1
Robert Li
2021년 12월 26일
The dashboards blocks seems do not work with real time models when run on a target.
Is there anyone who has such kind of trouble?
참고 항목
카테고리
Help Center 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!