MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual do Utilizador Página 240

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 330
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 239
1 2 ... 235 236 237 238 239 240 241 242 243 244 245 ... 329 330

Comentários a estes Manuais

Sem comentários