How can I stop the pushbutton of guide being pressed until the callback function is executed completely ?

2 次查看(过去 30 天)
I just want to know is there anyway to prevent the pushbutton of guide being pressed until the execution of the callback function is completed. I need the pushbutton to be pressed only once not even twice or so. If there are any methods please let me know.

采纳的回答

Walter Roberson
Walter Roberson 2020-10-20
Set the Interruptible property to off.
This will, though, prevent even timer interrupts if I understand correctly. The facility is intended more for critical sections rather than preventing the same button being pressed. The better approach is to have the callback set the Enable property to 'disable' during execution and change it back at the end of the function.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by