How to interrupt a callback while it's calling another function?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Niko
el 13 de En. de 2015
Comentada: Niko
el 14 de En. de 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 comentarios
Respuesta aceptada
Image Analyst
el 13 de En. de 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
Más respuestas (0)
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!