The calibration program consists of two parts. The process re is compiled under VXWORKS and runs on the MVME162 in the front end crate. The process re is written in c. VME accesses are performed using VISION to allow easy porting to any processor. The process calib_gui is the graphical user interface allowing the user to communicate with the front end process re. The interface uses TCL/TK to draw a state transition diagram and bind buttons to c routines. The communication code is written in c.
The process calib_gui reads a configuration file, the path is given by the environmental variable CALIB_HOST_NAMES, to determine which nodes will be active. The configuration file gives the host name and port number used for communication. Each node corresponds to one front end crate. Data from the front end crates can be assembled into the final event format by the process calib_gui and written to a file on disk.
Documentation describing the QIE calibration is available as a postscript file. The document describes the functionality of the calibration program, the bank formats and the calibration algorithm.
When calib_gui is run the following window will be opened. Valid states are shown as ovals, while the transition commands are shown as buttons. The user clicks on a button to change the state. At the bottom of the window is a message box. The current state is shown in green.