MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificaciones Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 216
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
2 Creating a GUI
2-22
The following figure shows how the GUI now looks when it first displays.
Adding Code to the Callbacks
When the GUI is completed and running, and a user clicks a user interface
control, such as a push button, MATLAB executes the callback specified by the
component’s
Callback property. In the example, the name of the Surf push
button callback is
surf_pushbutton_Callback. For information about the
naming of callbacks see “The Tag Property” on page 2-14.
This section describes how to add the code for the callbacks.
Push Button Callbacks
Each of the push buttons creates a different type of plot using the data specified
by the current selection in the pop-up menu. Their callbacks get data from the
handles structure and then plot it. To add code to the surf push button
callback, click
surf_pushbutton_Callback in the callback pop-up menu.
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 215 216

Comentarios a estos manuales

Sin comentarios