Next: Using the Program
Up: Superharp Systems
Previous: The Superharp Device
Subsections
The superharp interface window
The automated hall C superharp interface window program allows control of both
data acquisition and data analysis. The flow chart of the code is shown on Fig. 2.5.
Each superharp device is controlled via
EPICS. The
signals obtained from a scan are then
stored into an ASCII file which serves as an input file for a C++ routine where all the
calculations are performed. The main interface window is shown on Fig. 2.6.
Figure 2.5:
Flowchart of the hall C superharp interface program.
 |
Figure 2.6:
The hall C superharp interface window.
 |
In this section, we will review the different menu items that allow users to perform a scan and
perform data analysis.
Data Acquisition
The corresponding code is running only on the actual cdaqh1 cluster located in the experimental
hall C counting house. Selecting
launches the MEDM executable routine.
There are two control panels: one allows the user to select the appropriate superharp
(Fig. 2.7) and one to perform the scanning process (Fig. 2.8).
Figure 2.7:
The hall C superharp selection control panel.
 |
Figure 2.8:
The hall C superharp scanning control panel.
 |
Before starting any scanning process, verify that you have the correct default parameters as shown in
Table 2.1 below.
Table 2.1:
The default scan parameters for the hall C superharp system.
Values: |
|
|
Acceleration |
2000 tr/min |
|
Velocity |
20000 tr/min |
|
Deceleration |
2000 tr/min |
|
Pre-Gain Amplifier (PGA) |
2 |
|
Messages: |
|
|
State |
1 |
|
Status |
Declared Zero Point Harp Position |
|
Input Register |
64335 |
|
Analog Digital Converter (ADC) counts |
10-30 (background) |
|
Cmd Readback |
129 |
|
|
If not, then enter the correct value(s) and hit
. Note that the value will not
change unless you hit
. The last two digits in the
box may
not be the same due to the 10
m accuracy of the encoder.
After launching MEDM, click on the red
button to begin the scan. The list
below describes the change in several important variables during the scanning process.
-
changes from 1 to 4.
-
indicates Harp is moving, Harp is retracting, and
Declared zero harp position during the corresponding motion of the harp.
Declared zero harp position indicates that the scan is finished and the harp has
returned to its fully retracted rest position.
-
changes to 30000 tr/min when the harp comes back.
-
registers the number of electrons picked up when a wire crosses the beam.
-
reads 66 when the harp is moving in the forward direction
and 65 in the backward direction.
Data analysis
Although
is the main executable, the files
and
are both required:
contains the graphical routines
for the program and is interpreted at run-time through
.
contains
both C++ and Tcl/Tk codes:
is written in C++ and contains most
of the calculation routines, and
is written in Tk and contains the user
interface and graphing routines.
The menu commands and entry items are described in Table 2.2.
Table 2.2:
Definition of the menu commands, accelerators and entry items.
Menu Commands and Accelerator |
File Reset |
Ctrl-R |
Clears all graphs and removes all data. |
File Load |
Ctrl-L |
Load all data in the current path. |
File Save |
Ctrl-S |
Saves all data in the current path. |
File Print |
Ctrl-P |
Prints all graphs to the current printer. |
File Quit |
Ctrl-Q |
Exits the program. |
Harp Options |
|
Calls the configuration dialog. |
Harp Scan |
|
Launches the medm scanning routine. |
Calculate dP/P0 |
|
Calculates and based on the current data. |
Calculate Smooth |
Ctrl-M |
Filters out background noise in all graphs. |
Calculate Unsmooth |
Ctrl-U |
Reverses Calculate Smooth. |
Calculate Transform |
Ctrl-T |
Calculates the Fourier cosine transform |
|
|
of the data. |
Entry Items |
Superharp |
|
Load the selected superharp from the path |
|
|
listed in the File Name entry and graphs it |
Experiment |
|
Specifies the number of the current experiment. |
|
|
The destination for files created by File Save |
|
|
is scan_data/Experiment/File Name |
File Name |
|
Specifies the location of the harps to be loaded |
|
|
or the destination for the files created |
|
|
by File Save |
Printer |
|
Specifies the current printer |
|
The two remaining buttons on the superharp interface window menu bar,
and
, allow users to switch to the BLM channels and displays this document (harphelp.ps),
respectively.
Next: Using the Program
Up: Superharp Systems
Previous: The Superharp Device
Hall-C Staff
2002-11-04