Console Application P77

P77 snapshot

Modification History


Program P77 is used to collect accelerator parameters, perform some preliminary calculations and send data to experiment E-835. The following is a history of code modifications and improvements, with their impact on the ACNET raw data recorded by the experiment on fn835x.fnal.gov in /daqdata/acnet. In MECCA$DISK:[MECCA.PA1636]HISTORY.TXT on the console cluster (CNS55.FNAL.GOV, for instance), there is an entry for each time the code was rebuilt, with time stamp and list of modified files. The dates in this history refer to the rebuilding of the official P77; sometimes changes start to be effective from earlier runs because a test version was being run.

25 January 2000
General refurbishment in view of the E-835 Y2K run. Updated cooling and RF device names; read and send emittances NOT normalized (normalized devices are not ready). Read new ramp file directory.
27 January 2000
Updated BPM coefficients using Steve Werkema's lattice calculations. Reference orbit is P51 Archive File #9 with arbitrary length L = 474048.8 mm. The slip factor eta is linearly interpolated between points in a new hard-coded look-up table, based upon measurements of September 1999.
29 January 2000
Solved problem of BPM truncation. Only the integer part of the BPM readings in millimeters was recorded from the beginning of the run (run 5006) through event 57 (inclusive) of run 5029. The difference in orbit length between event 57 (truncated BPMs) and event 58 (good BPM readings) of run 5029 is 1.19 mm; the difference between the average length for events 1-57 and events 58-68 is 1.22 mm corresponding to 182 keV in CM energy.
3 February 2000
The reference orbit from the psi' scan (from Steve Werkema's analysis) is used; reference orbit length is L = 474054.035 mm. Changed BPM coefficients; the new ones have A6Q11 masked (it is used in the RPOS loop). Changes effective from event 2 of run 5107.
1 March 2000
Fixed bug regarding the frequency spectrum. For runs up to 5131, the last number of the SA header is overwritten with the first spectrum datum. This means that the harmonic number has to be inferred from (SA center freqency)/(RF h=1 frequency); also, all 1001 spectrum points have to be shifted to the right (towards higher frequencies) by one bin.
14 March 2000
The center frequency of the spectrum analyzer is kept constant to a harmonic of the RF ramp value. The spectrum analyzer settings alternate between a high-resolution spectrum and a wide-span one. Incorporated Gabriele Garzoglio's code to send BPM rms (data type 8); the BPMs are requested to perform 3 measurements per DAQ cycle (hard-coded). These changes are effective from run 5235. For runs 5235-5258, the number of BPM measurements is not recorded and the rms is erroneously multiplied by 100.
16 March 2000
Updated BPM coefficients. The first affected event is #84 (the last one) of run 5254. The measured orbit length increased by 2.1 mm.
20 March 2000
The number of BPM measurements per DAQ cycle can be chosen from the main window and is recorded in the data stream. Fixed BPM rms erroneous multiplication (see above entry for 14 March 2000). Effective from run 5407.
6 April 2000
New BPM CONTROL subwindow, with number of BPM measurements per DAQ cycle, reference orbit information and BPM coefficients. Reference orbit and BPM coefficients can be read from file. The default file names are USERA:[STANCARI.ACCUMULATOR.RO]REF_ORBIT.DAT and CBS_FILES:[CNS_WRITE.MAD.PBAR.OUTPUT]BPM_ORB_COEF.DAT, respectively. The latter should be generated by P137 after reaching the target energy.
6 April 2000
(a) Added RF CONTROL menu; the user can select which RF information is recorded in the data stream: ARF-2 (A:RLLFS1 and A:R2HLFB) or ARF-3 (A:RLLFS0 and A:R3HLFB). First instance of RF change is in run 5432, event 115. (b) Everytime A:ECM is calculated, the new device A:E835HB (E-835 heartbeat) is set to 1, so that P85 (E-835 babysitter) can periodically check if P77 is alive.
9 April 2000
New SA CONTROL subwindow. Span and resolution bandwidth of high-resolution and wide-span measurements can be adjusted by the user. Settings saved to file are the default for when P77 is restarted.
18 April 2000
Updated gas-jet devices. Replaced E:GJPSP, E:GJPRB, E:GJTSP, E:GJTRB and E:GJDENS with E:GJPRB, E:GJTRB, E:GJ102, E:GJ103 and E:GJ100, respectively. Effective from run 5510.
19 April 2000
Fixed bug in display of new gas-jet devices in E-835 DATA DISPLAY window.
27 April 2000
(a) The correction to A:ECM due to A:CENFRQ being different from the RF frequency uses the value selected from the RF CONTROL menu. Before A:RLLFS0 was assumed. (b) Corrected historical bug in the transmission of vertical BPM data. A2Q1V, A4Q1V and A6Q1V were lost, while the other even-house readings were shifted by one place in vector NEWR. This was the case for raw readings, reference orbit and rms. Effective from run 5571.
18 May 2000
The negative of the BPM intensity is sent to the E-835 data stream if a particular horizontal BPM is saturated, so that there is more information than just the generic global flag OFAIL. Affects data starting from stack 20 (run>5705).
25 May 2000
A:EMITHN and A:EMITVN back in E-835 data stream. They had been replaced by A:EMITH and A:EMITV at the beginning of the E-835 Y2K run, because the normalized devices were not available. Devices at 500 MHz are still unnormalized (A:EMT5H and A:EMT5V). Effective from stack 22 (run>5743).

Giulio Stancari, stancari@fnal.gov
Last modified: Thu May 25 11:53:58 CDT 2000