Specifications
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.