How to interrupt the callback function in GUI?

6 次查看(过去 30 天)
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 个评论
Jan
Jan 2021-3-27
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by