source: trunk/FACT++/ScriptsForDimCtrl/FirstDrsCalib@ 12756

Last change on this file since 12756 was 12728, checked in by kraehenb, 13 years ago
Added bias reconnect at the beginning and fixed the bug that the dark count run was taken while the bias is ramping (added waiting for bias state 5 and back to 9).
File size: 2.3 KB
Line 
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
4BIAS_CONTROL/RECONNECT
5FEEDBACK/START_TEMP_CONTROL 0.00
6FEEDBACK/ENABLE_OUTPUT 1
7BIAS_CONTROL/SET_ZERO_VOLTAGE
8.s BIAS_CONTROL 7
9FAD_CONTROL/START_DRS_CALIBRATION
10.! echo `date -u` "bias voltage is switched off" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
11
12.! echo `date -u` "taking DRS:Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
13MCP/START -1 1000 drs-pedestal
14.s FAD_CONTROL 8
15.s FAD_CONTROL 4
16.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
17
18.! echo `date -u` "taking DRS:Gain 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
19MCP/START -1 1000 drs-gain
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 Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
25MCP/START -1 1000 pedestal
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 crosscheck Pedestal 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
31FAD_CONTROL/SET_FILE_FORMAT 2
32MCP/START -1 1000 pedestal
33.s FAD_CONTROL 8
34.s FAD_CONTROL 4
35.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
36
37.! echo `date -u` "switching on bias ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
38BIAS_CONTROL/SET_GLOBAL_DAC 1
39.s BIAS_CONTROL 9
40.s BIAS_CONTROL 5
41.s BIAS_CONTROL 9
42.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
43
44.! echo `date -u` "taking Pedestal with BIAS on 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
45MCP/START -1 1000 pedestal
46.s FAD_CONTROL 8
47.s FAD_CONTROL 4
48.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
49
50.! echo `date -u` "switching OFF bias ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
51BIAS_CONTROL/SET_ZERO_VOLTAGE
52.s BIAS_CONTROL 7
53.! echo `date -u` "... done" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
54
55.! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
56.! echo `date -u` "This is the end of First DRS Calibration" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
Note: See TracBrowser for help on using the repository browser.