This recipe introduces the basic use of DX. It covers creating and
running a simple DX network. Only the very minimum set of features needed
to create and run a network are mentioned; there are many features and
facilities which are omitted. See the QuickStart Guide[1]
and other IBM DX manuals for further details (the IBM manuals are listed
in Table 1 of SUN/203[11]). The best way to use
this recipe is probably to have a terminal on which you can run DX to
hand and to work through the recipe trying the various points.
- To start DX (see also Section
, above), ensure that
your display is configured to receive X-output and then simply type:
dx
The following message should appear on your command terminal:
Starting DX user interface
and a new window similar to Figure
should appear.
Figure:
The main
window for the Visual Program Editor.
 |
- Figure
shows the main window for the Visual Program
Editor (VPE). You will use it to construct DX networks which in turn
will generate visualisations.
- To place a module on the canvas (for subsequent inclusion in a
network) proceed as follows:
- select the appropriate category, so that the required module
appears in the lower box,
- click on the required module in the lower box, and it will be
highlighted,
- move the cursor to the desired position in the canvas and
click again. The module will appear as a rectangular icon (see,
for example, Figure
).
- If you want to move a module to another position in the canvas
(for example, because you have inadvertently put it in the wrong
place):
- click in the body of the module and hold down the leftmost
mouse button,
- move the cursor to the new position (continuing to hold down
the mouse button),
- release the mouse button.
- To delete a module from the canvas:
- click in the body of the module. It should appear highlighted,
with a white bar above and below it,
- choose the `Delete' option from the `Edit' menu and the module
should disappear from the canvas.
- The icons representing modules usually have tabs projecting
from their top and bottom sides.
- The tabs along the top represent inputs to the module.
- The tabs for mandatory inputs are coloured a brighter shade
of green; optional (or defaulted) inputs are the same colour as
the body of the icon.
- The tabs along the bottom represent outputs.
In DX data can only flow from an output tab to an input tab. An
input tab can only be fed by one output tab. However, an output tab
can feed an arbitrary number of input tabs.
- To connect an output to an input:
- click on the output tab and hold the leftmost mouse button
down,
- move the cursor to the input tab, continuing to hold the
mouse button down,
- release the mouse button.
A line should be drawn from the output to the input tab (not all
input and output types are compatible; if the tabs are not compatible
DX will not connect them with a line).
- To remove the connection between an input and output:
- click on the input tab and hold down the leftmost
mouse button,
- move the cursor to a blank portion of the canvas,
- release the mouse button, and the connection will vanish.
- At this juncture, practice positioning modules on the canvas,
deleting them and connecting them, until you have got the hang of it.
- Values for input tabs can be specified as defaults as an
alternative to supplying a value from an output tab. This mechanism
is often used to specify the name of the data file which a network
is to operate on, as well as to supply other values needed by a
network. The procedure is as follows:
- double-click on the module for which an input value is to be set,
- a new window, called the configuration window, should appear,
showing the commonly used inputs for the module. Figure
shows this window for the `Import' module,
Figure:
Window for the `Import'
module.
 |
- each line of the `Inputs' section of the window corresponds
to a separate input; their names are listed on the right hand
side. For module `Import' the inputs are `name', `variable' and
`format',
- click on the `Value' box for the chosen input,
- hold down the leftmost mouse button and drag it over the
existing value, so that the existing value is highlighted,
- type in the new value,
- hit return (do not forget this step),
- after you have hit return DX will display the value that you
have entered, inside the box, in double quotation marks,
- repeat the procedure until all the required inputs have been
set, then click on the `OK' button.
By default only the commonly used inputs for a module are shown. To
show all the inputs (and outputs) click on the `Expand' button.
- Various on-line help information is available within DX. In
particular, it is possible to get help on individual modules, which
is useful both for finding out what a module does and for determining
the input which it needs. To obtain help on a module proceed as
follows:
- click on the `Help' menu in the top right hand corner of
the VPE (see Figure
),
- choose menu-item `Context-Sensitive Help'; the mouse pointer
will change to a `?',
- position the pointer over either the required module on the
canvas or the name of the module in the list in the bottom left
hand corner of the VPE, and click,
- another window containing a detailed description of the module
will appear. Note that this information is formatted as hypertext,
with links being indicated by a box drawn around the linked text.
Simply click inside the box to follow the link,
- when you have finished perusing the text simply click on the
`Close' button.
- Another useful trick is that if you position the pointer over
an input or output tab and hold down the leftmost mouse button then
while the button is depressed the name of the tab appears in the
module icon. This feature is particularly convenient for identifying
tabs.
- Now clear the canvas ready to start building a network: select
option `New' from the `File' menu.
- Figure
shows virtually the simplest possible DX
network. You are now going to create this network.
Figure:
A simple network.
 |
There are two ways to create the network. The first is to find the
three modules, position them on the canvas and join them as shown.
The second is to read in a prepared copy of the network from a file.
For the second option proceed as follows.
- Select `Open Program' from the `File' menu.
- The `Open...' window appears, as shown in
Figure
. You will use this window to specify the network
file.
Figure:
The `Open...' window.
 |
- The `Filter' box at the top of the window controls the files
available for selection. It contains a wild-card file expression
and all the files which match the expression are available for
selection. Click on this box and enter:
$STARLINK_DIR/examples/sc2
A list of networks should appear in the `Files' box on the right
hand side of the window. By convention DX networks have file type
`.net'.
- Click on file `simple.net' in this box. The full file
name and directory specification of the simple network should
now appear in the `Selection' window.
- Click on the `OK' button. The `Open...' window closes and
the network is loaded onto the canvas.
The network is now ready for use.
- The purpose of the three modules of the network is:
- Import
- read in the field to be displayed from an external
file,
- AutoColor
- colour a field ready for display, so that a range
of values in the field map to a range of colours,
- Image
- display a field. In this network `Image' will produce a
volume rendering of a gridded dataset. However, it can accept
various other sorts of input to produce different sorts of display.