MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Spezifikationen Seite 112

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 180
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 111
4 Programming GUIs
4-12
else
% Increment the error count, and display it
handles.numberOfErrors = handles.numberOfErrors+1;
set(handles.edit1,'String',...
[handles.errorString,num2str(handles.numberOfErrors)]);
guidata(gcbo,handles);
% store the changes
end
Saving the Handles Structure
You must use guidata to save the handles structure whenever you change
values in that structure. The statement,
guidata(gcbo,handles);
saves the current handles structure for the GUI figure.
Obtaining the Updated Handles Structure
There are cases where you must obtain an updated version of the handles
structure. You can do this with a call to
guidata:
handles = guidata(figure_handle);
where figure_handle is the handle of the GUI figure where the handles
structure is stored.
When Do You Need to Reload the Handles Structure
The handles structure follows the same scoping rules as any MATLAB
variable. If you modify it in a subfunction (e.g., a callback) and return to the
main function, you must reload the structure using
guidata.
Callbacks always load the current version of the
handles structure by passing
guidata(gcbo) as an argument.
If You Are Not Using a Handles Structure
If you are writing your own application M-file and are not generating a handles
structure, you can still use the GUI figure’s application data for storing any
data that you want to pass between subfunctions. This mechanism involves:
Creating a structure containing the data you want to store.
Storing the structure in the figure’s application data.
Seitenansicht 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 179 180

Kommentare zu diesen Handbüchern

Keine Kommentare

Echo 670-200 manuales

Manuales del propietario y guías del usuario para Máquinas De Jardín Echo 670-200.
Ofrecemos 1 manuales en pdf Echo 670-200 para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Máquinas De Jardín Echo

Modelos Tipo de documento
SRM-280T Manual de usuario   Echo SRM-280T User Manual, 29 paginas
RM-4000SI Manual de usuario     Echo RM-4000SI User Manual, 68 paginas
TC-210 Manual de usuario   Echo TC-210 User Manual, 32 paginas
SRM-225SB Manual de usuario   Echo SRM-225SB User Manual, 46 paginas
HC-2400 Manual de usuario   Echo HC-2400 User Manual, 32 paginas
SRM-260 Manual de usuario   Echo SRM-260 User Manual, 44 paginas
SHC-210 Manual de usuario   Echo SHC-210 User Manual, 28 paginas
SB Manual de usuario   Echo SB User Manual, 56 paginas
TC-210 Manual de usuario   Инструкция по эксплуатации Echo TC-210, 26 paginas
ES-2100 Manual de usuario   Echo ES-2100 User Manual, 8 paginas
ES-2100 Manual de usuario   Инструкция по эксплуатации Echo ES-2100, 29 paginas
CLS-5800 Manual de usuario   Инструкция по эксплуатации Echo CLS-5800 [en] [de] [fr] , 33 paginas
CLS-5800 Manual de usuario   Echo CLS-5800 User Manual [es] , 9 paginas
BRD-280 Serial S70812001001 - S70812014074 Manual de usuario   Echo BRD-280 Serial S70812001001 - S70812014074 User Manual, 36 paginas
BRD-280 Serial S70812014075 - S70812999999 Manual de usuario   Echo BRD-280 Serial S70812014075 - S70812999999 User Manual [en] , 36 paginas
PB-755ST Manual de usuario   Echo PB-755ST User Manual, 32 paginas
PB-760LNT Manual de usuario   Echo PB-760LNT User Manual, 36 paginas
PB-265LN Manual de usuario   Echo PB-265LN User Manual, 32 paginas
PB-255LN Manual de usuario   Echo PB-255LN User Manual, 36 paginas
PB-250LN Manual de usuario   Echo PB-250LN User Manual, 32 paginas