source: trunk/FACT++/ScriptsForDimCtrl/DataTaking1@ 13126

Last change on this file since 13126 was 13126, checked in by Jens Buss, 13 years ago
added a sanity check for fadctrl being in state connected before writing any data
File size: 5.0 KB
Line 
1# Move Telescope to Wobble Position 1
2.! echo `date -u` "Data Taking script for Crab Wobble 1 starting up... " >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
3.! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
4.! echo
5.! echo `date -u` "Operator: Move telescope to wobble Position 1" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
6.! echo `date -u` "Operator: Measure Sky Brightness" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
7.! echo `date -u` "... This script will wait 10sec for you to wobble" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
8.w 10000
9FEEDBACK/ENABLE_OUTPUT 1
10
11# Making sure bias is off
12BIAS_CONTROL/SET_ZERO_VOLTAGE
13.s BIAS_CONTROL 7
14FAD_CONTROL/START_DRS_CALIBRATION
15.! echo `date -u` "bias voltage is switched off" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
16
17.! echo `date -u` "taking DRS:Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
18.s FAD_CONTROL 4
19MCP/START -1 1000 drs-pedestal
20.s FAD_CONTROL 8
21.s FAD_CONTROL 4
22.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
23
24.! echo `date -u` "taking DRS:Gain 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
25MCP/START -1 1000 drs-gain
26.s FAD_CONTROL 8
27.s FAD_CONTROL 4
28.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
29
30.! echo `date -u` "taking DRS:Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
31MCP/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 crosscheck DRS:Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
37FAD_CONTROL/SET_FILE_FORMAT 2
38MCP/START -1 1000 drs-pedestal
39.s FAD_CONTROL 8
40.s FAD_CONTROL 4
41.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
42
43.! echo `date -u` "taking DRS:Time 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
44MCP/START -1 1000 drs-time
45.s FAD_CONTROL 8
46.s FAD_CONTROL 4
47.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
48
49.! echo `date -u` "taking DRS:Time upshifted 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
50MCP/START -1 1000 drs-time-upshifted
51.s FAD_CONTROL 8
52.s FAD_CONTROL 4
53.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
54
55.! echo `date -u` "taking Pedestal 1000 for secondary baseline..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
56FAD_CONTROL/RESET_SECONDARY_DRS_BASELINE
57MCP/START -1 1000 pedestal
58.s FAD_CONTROL 8
59.s FAD_CONTROL 4
60.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
61
62.! echo `date -u` "taking crosscheck Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
63FAD_CONTROL/SET_FILE_FORMAT 2
64MCP/START -1 1000 pedestal
65.s FAD_CONTROL 8
66.s FAD_CONTROL 4
67.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
68
69.! echo `date -u` "switching on bias ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
70BIAS_CONTROL/SET_GLOBAL_DAC 1
71.s BIAS_CONTROL 9
72.s BIAS_CONTROL 5
73.s BIAS_CONTROL 9
74# here one should wait 30..45sec according to TB
75.! echo `date -u` "bias is on, and feedback-program is working, but we wait 45sec for the current readings..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
76.w 45000
77.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
78
79.! echo `date -u` "taking Pedestal with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
80MCP/START -1 1000 pedestal
81.s FAD_CONTROL 8
82.s FAD_CONTROL 4
83.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
84
85.! echo `date -u` "taking External Light Pulser with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
86MCP/START -1 1000 light-pulser-ext
87.s FAD_CONTROL 8
88.s FAD_CONTROL 4
89.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
90
91#Data Taking with Full Trigger Area (4x5min)
92
93.! echo `date -u` "taking Data:FullTriggerArea 5min Run 1 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
94MCP/START 300 -1 data
95.s FAD_CONTROL 8
96.s FAD_CONTROL 4
97.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
98
99.! echo `date -u` "taking Data:FullTriggerArea 5min Run 2 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
100MCP/START 300 -1 data
101.s FAD_CONTROL 8
102.s FAD_CONTROL 4
103.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
104
105.! echo `date -u` "taking Data:FullTriggerArea 5min Run 3 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
106MCP/START 300 -1 data
107.s FAD_CONTROL 8
108.s FAD_CONTROL 4
109.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
110
111.! echo `date -u` "taking Data:FullTriggerArea 5min Run 4 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
112MCP/START 300 -1 data
113.s FAD_CONTROL 8
114.s FAD_CONTROL 4
115.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
116
117.! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
118.! echo `date -u` "This is the end of Data Taking of Crab Wobble 1" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
119
Note: See TracBrowser for help on using the repository browser.