1 | # Making sure bias is off
|
---|
2 | .! echo `date -u` "First DRS Calibration Script starting up..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
3 | .! echo `date -u` "-------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
4 | .! echo `date -u` "reconnecting to bias crate / switching bias ON / disabling feedback" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
5 | BIAS_CONTROL/RECONNECT
|
---|
6 | .! echo `date -u` "wating for RECONNECT --> voltageOff" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
7 | .s BIAS_CONTROL 7 5000
|
---|
8 | FEEDBACK/START_TEMP_CONTROL 0.00
|
---|
9 | FEEDBACK/ENABLE_OUTPUT 1
|
---|
10 | .w 3000
|
---|
11 | BIAS_CONTROL/SET_GLOBAL_DAC 1
|
---|
12 | .s BIAS_CONTROL 9
|
---|
13 | FEEDBACK/ENABLE_OUTPUT 0
|
---|
14 | FEEDBACK/STOP
|
---|
15 | .s FEEDBACK 6
|
---|
16 | .w 500
|
---|
17 | .! echo `date -u` "calibrating bias crate current readings..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
18 | FEEDBACK/CALIBRATE_CURRENTS
|
---|
19 | .s FEEDBACK 13
|
---|
20 | .s FEEDBACK 6
|
---|
21 | .w 3000
|
---|
22 | FEEDBACK/START_TEMP_CONTROL 0.00
|
---|
23 | .w 500
|
---|
24 | FEEDBACK/ENABLE_OUTPUT 1
|
---|
25 | BIAS_CONTROL/SET_ZERO_VOLTAGE
|
---|
26 | .s BIAS_CONTROL 7
|
---|
27 | .! echo `date -u` "bias voltage is switched off" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
28 | FAD_CONTROL/START_DRS_CALIBRATION
|
---|
29 |
|
---|
30 | .! echo `date -u` "taking DRS:Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
31 | MCP/START -1 1000 drs-pedestal
|
---|
32 | .s FAD_CONTROL 8
|
---|
33 | .s FAD_CONTROL 4
|
---|
34 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
35 |
|
---|
36 | .! echo `date -u` "taking DRS:Gain 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
37 | MCP/START -1 1000 drs-gain
|
---|
38 | .s FAD_CONTROL 8
|
---|
39 | .s FAD_CONTROL 4
|
---|
40 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
41 |
|
---|
42 | .! echo `date -u` "taking Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
43 | MCP/START -1 1000 pedestal
|
---|
44 | .s FAD_CONTROL 8
|
---|
45 | .s FAD_CONTROL 4
|
---|
46 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
47 |
|
---|
48 | .! echo `date -u` "taking crosscheck Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
49 | FAD_CONTROL/SET_FILE_FORMAT 2
|
---|
50 | MCP/START -1 1000 pedestal
|
---|
51 | .s FAD_CONTROL 8
|
---|
52 | .s FAD_CONTROL 4
|
---|
53 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
54 |
|
---|
55 | .! echo `date -u` "switching on bias ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
56 | BIAS_CONTROL/SET_GLOBAL_DAC 1
|
---|
57 | .s BIAS_CONTROL 9
|
---|
58 | .s BIAS_CONTROL 5
|
---|
59 | .s BIAS_CONTROL 9
|
---|
60 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
61 |
|
---|
62 | .! echo `date -u` "taking Pedestal with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
63 | MCP/START -1 1000 pedestal
|
---|
64 | .s FAD_CONTROL 8
|
---|
65 | .s FAD_CONTROL 4
|
---|
66 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
67 |
|
---|
68 | .! echo `date -u` "switching OFF bias ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
69 | BIAS_CONTROL/SET_ZERO_VOLTAGE
|
---|
70 | .s BIAS_CONTROL 7
|
---|
71 | .! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
72 |
|
---|
73 | .! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
74 | .! echo `date -u` "This is the end of First DRS Calibration" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|