MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador Página 485

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 759
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 484
Time Data Updates from a GUI (GUIDE)
update_display
update_display is the callback for the timer object. It adds Gaussian noise to
the
ZData ofthesurfaceplot:
handles = guidata(hfigure);
Z = get(handles.surf,'ZData');
Z = Z + 0.1*randn(size(Z));
set(handles.surf,'ZData',Z);
Because update_display is not a GUIDE-generated callback, it does not
include
handles as one of its calling arguments. Instead, it accesses the
handles structure by calling
guidata. The callback gets the ZData of the
surface plot from the
handles.surf member of the structure. It modifies
the Z matrix by adding noise using
randn, and then resets the ZD ata of the
surface plot with the modified data. It does not modify the handles structure.
Note Nothing prevents you from adding the h andles structure as an
argument to a non-GUIDE-generated callback, such as
update_display.
However, the handles data the callback receives is a static copy which does
not change when other parts of your code update
handles by calling guidata.
For this reason, the
update_display callback calls guidata to get a fresh
copy of
handles each time it executes.
figure1_CloseRequestFcn
MATLAB calls the figur e1_CloseRequestFcn when you click the close box of
the GUI. The callback cleans up the application before it exits, stopping and
deleting the timer object and then deleting the figure window.
% Necessary to provide this fu nction to prevent timer callback
% from causing an error after GUI code stops executing.
% Before exiting, if the timer is running, stop it.
if strcmp(ge t(ha ndles.timer, 'Runni ng') , 'on')
stop(handles.timer);
end
% Destroy timer
delete(handles.timer)
% Destroy figure
delete(hObject);
10-111
Vista de página 484
1 2 ... 480 481 482 483 484 485 486 487 488 489 490 ... 758 759

Comentários a estes Manuais

Sem comentários

Seiwa Sprzęt wodny podręczniki użytkownika

Lista Seiwa Sprzęt wodny produkty zawierają 22 instrukcje obsługi do modeli 14. Wszystkie podręczniki użytkownika w formacie pdf są dostępne do pobrania lub obejrzenia online.

Kliknij na poniższy alfabet, aby przejść do pełnej listy modeli zaczynających się od tej litery

Modele Rodzaj dokumentu
Explorer 3(v.7.0)
Instrukcja Użytkownika   Seiwa Explorer 3(v.7.0) User Manual, 8 strony
Instrukcja Użytkownika   Seiwa Explorer 3(v.7.0) Benutzerhandbuch, 8 strony
Instrukcja Użytkownika   Seiwa Explorer 3(v.7.0) Manuel d'utilisation, 8 strony
FT70 multi-touch
Instrukcja Użytkownika     Seiwa FT70 multi-touch User Manual, 2 strony
Marlin(v.16.31)
Instrukcja Użytkownika   Seiwa Marlin(v.16.31) User Manual, 12 strony
Radar tuning
Instrukcja Użytkownika   Seiwa Radar tuning User Manual, 14 strony
Seawave 12 MKII
Instrukcja Użytkownika   Seiwa Seawave 12 MKII Manual del usuario, 114 strony
Starfish 2nd Edition
Instrukcja Użytkownika   Seiwa Starfish 2nd Edition User Manual, 118 strony
Instrukcja Użytkownika   Seiwa Starfish 2nd Edition Manuale d'uso, 120 strony
Instrukcja Użytkownika   Seiwa Starfish 2nd Edition Benutzerhandbuch, 121 strony
SW AP01
Instrukcja Użytkownika   Seiwa SW AP01 User Manual, 52 strony
SW AP03
Instrukcja Użytkownika   Seiwa SW AP03 User Manual, 49 strony
Instrukcja Użytkownika   Seiwa SW AP03 Manuale d'uso, 36 strony
SW RP03
Instrukcja Użytkownika   Seiwa SW RP03 User Manual, 10 strony
SW RP05
Instrukcja Użytkownika   Seiwa SW RP05 User Manual, 6 strony
SW RP07
Instrukcja Użytkownika   Seiwa SW RP07 User Manual, 7 strony
SW701i SW701e
Instrukcja Użytkownika   Seiwa SW701i SW701e User Manual, 153 strony
Instrukcja Użytkownika   Seiwa SW701i SW701e Manuale d'uso, 157 strony
Instrukcja Użytkownika   Seiwa SW701i SW701e Benutzerhandbuch, 159 strony
Tigershark Plus
Instrukcja Użytkownika   Seiwa Tigershark Plus Manuale d'uso, 128 strony
Instrukcja Użytkownika   Seiwa Tigershark Plus User Manual, 109 strony