How to break a running function in an App Designer app?
9 ビュー (過去 30 日間)
古いコメントを表示
I have a button in app designer that calls a function, which can sometimes take 15+ min to return. I'd like to have a second button which breaks the function call of the first so that I can change other UI elements and start the call over. What's the best way to do this?
0 件のコメント
回答 (1 件)
Matt J
2018 年 1 月 15 日
編集済み: Matt J
2018 年 1 月 15 日
Ctrl+C should abort the function call without aborting the app.
If that's not graceful enough, you will need to modify whatever loop button #1 is running so that it periodically check the state of some app property controlled by button #2.
参考
カテゴリ
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!