Exercise Two
Objectives
To become familiar with some aspects of interacting with modules, including
- Working with widgets
- Connecting modules together
- Adding new modules to a map
Instructions
- Read2Da reads in 2D scalar or vector
data from an ASCII file in a simple format and outputs a 2D uniform
lattice. Load the file /usr/explorer/data/NAG/zigzag.2D into Read2Da.
Either type the pathname in (don't forget to hit
<Enter>), or pull
down the file browser under the File menu item on the maxi control
panel. What does the module do if you mis-type the name of the file?
- Modules fire when all their inputs are satisfied. The title bar
flashes yellow when the module is firing. What happens to Read2Da if
you load the file again (hit at the end of the filename in the
text widget)?
- Maximise the Contour control panel. Check the default values for
the limits on the minimum and maximum contour levels. Connect
Read2Da's Lattice port to Contour's Input port. What happens to the
limits when the connection is made?
- Set Num Levels to 7, and Min Level to -10.5. What does Contour do
each time one of its parameters is changed? Connect Contour's
Contours port to Render's Input port. Maximise the Render control
panel to get a better view of the output.
- Set Max Level on Contour to exactly 3.0, and view the change to
the output in the Render window. Try some other values for the
parameters to Contour, and view the results.
- The WireFrame module creates a bounding box around a 2D lattice by
calculating the limits of its coordinates. Find it in the librarian,
and load it into the Map Editor. Connect its Input port to the
Lattice port on Read2Da, and its Output port to Render's Input port.
Back : Index :
Forward
Copyright The Numerical Algorithms Group Ltd. Oxford, UK. 1996