MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 659

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 658
Callback Sequencing and Interruption
This code creates the two Wait butto n s and specifies th e callbacks that
service them.
h_interrupt = uicontrol(h_panel1,' Style','pushbutton',...
'Position',[30,110,120,30],...
'String','Wait (interruptible)',...
'Interruptible','on',...
'Callback',@wait_interruptible);
h_noninterrupt = uicontrol(h_panel1,'Style','pushbutto n',...
'Position',[30,40,120,30],...
'String','Wait (noninterruptible)',...
'Interruptible','off',...
'Callback',@wait_noninterruptible);
The second GUI contains two push buttons:
- Surf Plot (queue) whose BusyA ctio n property is queue
- Mesh Plot (cancel)whose Bus yAction property is c ancel
Clicking either button triggers the button’s Callback callback to generate
aplotintheaxes.
14-7
Przeglądanie stron 658
1 2 ... 654 655 656 657 658 659 660 661 662 663 664 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag