Effacer les filtres
Effacer les filtres

How to interrupt the callback function in GUI?

6 vues (au cours des 30 derniers jours)
Helene Cheung
Helene Cheung le 27 Mar 2021
Commenté : Jan le 27 Mar 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 commentaire
Jan
Jan le 27 Mar 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by