MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifications Page 155

  • Download
  • Add to my manuals
  • Print
  • Page
    / 216
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 154
Interrupting Executing Callbacks
4-35
Interrupting Executing Callbacks
By default, MATLAB allows an executing callback to be interrupted by
subsequently invoked callbacks. For example, suppose you have created a
dialog box that displays a progress indicator while loading data. This dialog
could have a “Cancel” button that stops the loading operation. The “Cancel”
button’s callback routine would interrupt the currently executing callback
routine.
There are cases where you may not want user actions to interrupt an executing
callback. For example, a data analysis tool may need to perform lengthy
calculations before updating a graph. An impatient user may inadvertently
click the mouse on other components and thereby interrupt the calculations
while in progress. This could change the MATLAB state before returning to the
original callback.
The following sections provide more information on this topic:
“Controlling Interruptibility”
“The Event Queue”
“Event Processing During Callback Execution”
Controlling Interruptibility
All graphics objects have an Interruptible property that determines whether
their callbacks can be interrupted. The default value is
on, which means that
callbacks can be interrupted. However, MATLAB checks the event queue only
when it encounters certain commands —
drawnow, figure, getframe, pause,
and,
waitfor. Otherwise, the callback continues to completion.
The Event Queue
MATLAB commands that perform calculations or assign values to properties
execute as they are encountered in the callback. However, commands or actions
that affect the state of the figure window generate events that are placed in a
queue. Events are caused by any command that causes the figure to be redrawn
or any user action, such as a button click or cursor movement, for which there
is a callback routine defined.
MATLAB processes the event queue only when the callback finishes execution
or when the callback contains the following commands:
Page view 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 215 216

Comments to this Manuals

No comments

Energizer CAPW2BODE manuali

Manuali dei proprietari e guide per l'utente per Torce Energizer CAPW2BODE.
We fornisce 1 manuali pdf Energizer CAPW2BODE per scaricare gratuitamente in base al tipo di documento: Scheda Tecnica


Energizer CAPW2BODE Scheda Tecnica (1 pagine)


Marchio: Energizer | Categoria: Flashlights | Dimensione: 0.07 MB |

 




Più prodotti e manuali per Torce Energizer

Modelli Tipo di Documento
SOLRE35BP Scheda Tecnica   Energizer Solar Folding Lantern, 1 pagine
HD33A2ODE Scheda Tecnica   Energizer HD33A2ODE flashlight, 1 pagine
SOLCKCCBP Scheda Tecnica   Energizer Solar Carabiner Crank Light, 1 pagine
CAPR22ODE Scheda Tecnica   Energizer CAPR22ODE flashlight, 1 pagine
ECAP1AAE Scheda Tecnica   Energizer ECAP1AAE flashlight, 1 pagine
CAPG2BODE Scheda Tecnica   Energizer CAPG2BODE flashlight, 1 pagine
631637 Scheda Tecnica   Energizer Pro-Headlight 4 LED, 1 pagine
MILMOS11L Scheda Tecnica   Energizer MILMOS11L flashlight, 1 pagine
FL452WRH Scheda Tecnica   Energizer FL452WRH flashlight, 1 pagine
PLED34AE Scheda Tecnica    Energizer PLED34AE flashlight, 1 pagine
ELMCL11L Scheda Tecnica   Energizer ELMCL11L flashlight, 1 pagine
HD3LMS32E Scheda Tecnica   Energizer 3 LED Micro Sport Headlight, 1 pagine
3151LS Scheda Tecnica   Energizer 3151LS flashlight, 1 pagine
RCL1NM2WR Scheda Tecnica   Energizer RCL1NM2WR flashlight, 1 pagine
KCC2BODBP Scheda Tecnica   Energizer KCC2BODBP flashlight, 1 pagine
WRCLD41E Scheda Tecnica   Energizer WRCLD41E flashlight, 1 pagine
631638 Scheda Tecnica   Energizer Pro-Headlight 7 LED, 1 pagine
625702 Scheda Tecnica   Energizer Hi-Tech LED 2 in 1, 1 pagine
625701 Scheda Tecnica   Energizer Penlight, 1 pagine
632026 Scheda Tecnica   Energizer ENATEX, 1 pagine