MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 148

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 180
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 147
5 Application Examples
5-24
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 application M-file.
Zobrazit stránku 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 179 180

Komentáře k této Příručce

Žádné komentáře