We begin be describing the graphical user interface itself. For this, we develop a simple script file, the user_GUI.par file, as shown in Figure 6.1.
Line 1 is used to denote that all tokens that follow should be placed
in column format. The ``n'' argument denotes that the tokens should
not all necessarily have the same height. Line 2 provides the title,
and is split up over two lines by the use of the `
n' command. Lines
3 through 7 are used to define each of the spin buttons, where all of
them have a range of -5 to 5, have a starting value of 0, and have
unique identifiers of 0-4. Finally, line 8 terminates the column.
The end result will be Figure 6.2.
Lines 10-12 are required, and define the total number of inputs, outputs, and transferable data, respectively, to the user space that will be used by this controller.