From: Tilo Arens on
Hello,

I have developed a little application to carry out an animation: a timer object calls a timer function a few times each second and draws some surfaces in a figure. This is complemented by a GUI for turning certain features of the animation on and off and for starting and stopping the timer.

The problem: the callbacks of the GUI buttons are often not called when I click on the buttons. All components have the 'Interruptible'-property set to 'on' and 'BusyAction' set to 'queue'. The timer object has its 'BusyMode' property set to 'queue'.

I suspect that during execution of (certain parts) of the timer function, the GUI events are not queued. Could this be true? Specifically, I am carrying out several calls to the 'surf' function during each execution of the timer function. Would Matlab react to a click on a GUI button during execution of the 'surf' function?

Any help is highly appreciated. Best wishes, Tilo Arens