Borrar filtros
Borrar filtros

How to interrupt the callback function in GUI?

1 visualización (últimos 30 días)
Helene Cheung
Helene Cheung el 27 de Mzo. de 2021
Comentada: Jan el 27 de Mzo. de 2021
In GUI programming, function btn_callback is the callback of uibuttongroup (a group of button A,B and C).
Abilities of A,B and C are start, pause and stop this function, and all of them are in the same callback.
Function btn_callback will run when click button A, but this function will pause and stop when button B and button C is clicked respectively.
When button B was clicked, the function will run from the moment that it paused if button A clicked again.
But when button C was clicked, the function will run from the beginning if button A clicked again.
  1 comentario
Jan
Jan el 27 de Mzo. de 2021
It would be much easier to answer, if you post your current code. Otherwise the readers have to guess all details, e.g. of you are using GUIDE, AppDesigner or create the GUI programmatically.
It is not clear, if the callback contains some loops. or if a huge data set is processed, etc.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by