Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Interruptible + busyaction has no effect

Subject: Interruptible + busyaction has no effect

From: Alex Berkovich

Date: 10 Jan, 2011 08:33:04

Message: 1 of 2

Hi,
my goal:
prevent anything happening during execution of a callback of a toggle-button X
 
how I'm doing it:
toggle button X has Interruptible set to 'off';
push button Y has busyaction set to 'cancel'
(reference - http://www.mathworks.com/help/techdoc/creating_guis/bq61qtj-1.html)
 
What I want to happen - when X is pressed it does what it should; if Y is pressed during that time nothing happens until X is done AND Y is not executed after X is done.
 
in my case - after X is pressed and Y is pressed, X is activated and then Y is activated!

On the other hand - if I use a break-point in the callback function of X, then press Y, then continue X, Y is not executed when X is done (as should happen).

Any help is most appreciated
Alex

Subject: Interruptible + busyaction has no effect

From: Petr

Date: 7 Jan, 2013 12:48:12

Message: 2 of 2

"Alex Berkovich" wrote in message <igeg80$6qf$1@fred.mathworks.com>...
> Hi,
> my goal:
> prevent anything happening during execution of a callback of a toggle-button X
>
> how I'm doing it:
> toggle button X has Interruptible set to 'off';
> push button Y has busyaction set to 'cancel'
> (reference - http://www.mathworks.com/help/techdoc/creating_guis/bq61qtj-1.html)
>
> What I want to happen - when X is pressed it does what it should; if Y is pressed during that time nothing happens until X is done AND Y is not executed after X is done.
>
> in my case - after X is pressed and Y is pressed, X is activated and then Y is activated!
>
> On the other hand - if I use a break-point in the callback function of X, then press Y, then continue X, Y is not executed when X is done (as should happen).
>
> Any help is most appreciated
> Alex

Hello Alex,
I have similar problem. I use Matlab 2009a for realtime application and i use a button for stop process. Realtime process is executing for blocks and i have a little time for handling the button. If i shot the button, when is realtime process executing, i havenĀ“t chance to stop it.
Excuse me, i would ask you, how did you solve that problem?
Thank you for answer,
Petr

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us