How to break a running function in an App Designer app?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Matt J
am 15 Jan. 2018
Bearbeitet: Matt J
am 15 Jan. 2018
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.
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!