Launching a thread that effectively pushes a button in your GUI periodically
3 ビュー (過去 30 日間)
古いコメントを表示
Kristoffer Walker
2019 年 11 月 11 日
コメント済み: Kristoffer Walker
2019 年 11 月 11 日
Folks,
I am an experienced GUIDE user. But I am still a beginner in manual GUI design. I am trying to implement a callback that will effectively push an "Update" button that already exists on a GUI periodically. This update button performs some tasks and updates the uitable in the main GUI figure window. I'm trying to determine the best approach. So far, I have tried a solution that involves pushing button "A" in the GUI, which does something, then starts an infinite while loop witin the A callback function calls the Update callback button. However, locks up Matlab's computational capacity until control-C is administered. I expect there is a much better approach. Any advice or links to appropriate content would be much appreciated.
Kind regards,
Kris
0 件のコメント
採用された回答
per isakson
2019 年 11 月 11 日
編集済み: per isakson
2019 年 11 月 11 日
Create a timer ( see timer class Create object to schedule execution of MATLAB commands) that periodically invokes the Update callback function.
And see Debug code invoked by timer and finding the source of an error in a timer code. (I guess these tricks are still relevant.)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!