MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 240

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 330
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 239
10 Examples of GUIDE GUIs
10-16
Accessing Workspace Variables from a List Box
This GUI uses a list box to display workspace variables, which the user can
then plot.
Techniques Used in This Example
This example demonstrates how to:
Populate the list box with the variable names that exist in the base
workspace.
Display the list box with no items initially selected.
Enable multiple item selection in the list box.
Update the list items when the user press a button.
Evaluate the plotting commands in the base workspace.
The following figure illustrates the layout.
Note that the list box callback is not used in this program because the plotting
actions are initiated by push buttons. In this situation you must do one of the
following:
Leave the empty list box callback in the GUI M-file.
Delete the string assigned to the list box
Callback property.
Vista de pagina 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 329 330

Comentarios a estos manuales

Sin comentarios