User`s guide

Access Workspace Variables from a List Box (GUIDE)
Access Workspace Variables from a List Box (GUIDE)
In this section...
“About the Workspace Variable Example” on page 10-61
“View and Run the Workspace Variable GUI” on page 10-62
“Read Workspace Variables” on page 10-63
“Read Selections from List Box” on page 10-64
About the Workspace Variable Example
This GUI uses a list box to display names o f and plot variables in the base
workspace. Initially, no variable names are selected in the list box. T he GUI’s
provides controls to:
Update the list.
Select multiple variables in the list box. Exactly tw o variables must be
selected.
Create linear,
semilogx and semilogy line graphs of selected variables.
The GUI evaluates the plotting commands in the base w orkspace. It does
no validation before plotting. The user is responsible for selecting pairs of
variables that can be plotted against one another. The top-most selection is
used as thex-variable, the low er one as the y-variable.
The following figure illustrates the GUI layout.
10-61