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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 759
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 481
10 Examples of GUIDE GUIs
the link in the Callback column. You cannot access the timer object from
within GUIDE; it is created programmatically.
Component
Tag
Description
Callback
push button
startbtn
Starts/resumes
timer that adds
noise to the
surface plot,
startbtn_
Callback
push button
stopbtn
Halts timer to
stop plot from
updating.
stopbtn_
Callback
axes display
Displays a
changing surface
plot.
n/a
slider
periodsldr
Changes period
of timer between
its
Min of 0.01 s.,
and its
Max of 2
s., a nd updates a
label displaying
the period value.
periodsldr_
Callback
timer
timer
An object that
keeps time by
executing a
callback when
each period
elapses,
update_
display
The components have tags, strings, and positions specified in GUIDE, but
are not otherwise modified.
The GUI also has opening and closing functions containing user code:
ex_guide_timergui_OpeningFcn C reates the timer object and initializes
the slider andthe slider label.
figure1_CloseRequestFcn Stops and destroys the timer object, and
then destroys the figure.
10-108
Vista de página 481
1 2 ... 477 478 479 480 481 482 483 484 485 486 487 ... 758 759

Comentários a estes Manuais

Sem comentários