How to interrupt a callback while it's calling another function?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Niko
am 13 Jan. 2015
Kommentiert: Niko
am 14 Jan. 2015
Hi All,
The callback of a GUI button in my program calls another function (which takes a long time to run). Is there a way to interrupt this callback while that other function is running? It seems like setting 'Interruptible' to 'on' only works within that callback...
Thanks,
Niko
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 13 Jan. 2015
You can set a global variable that the routine checks periodically. See the FAQ for methods to do that: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing 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!