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

Last change on this file since 13069 was 13069, checked in by tbretz, 13 years ago
Replaced SET_CHANNEL_DAC by SET_GLOBAL_DAC; adapted FFEDBACK state number to new state number.
File size: 2.9 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
4.! echo `date -u` "reconnecting to bias crate / switching bias ON / disabling feedback" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
5BIAS_CONTROL/RECONNECT
6.! echo `date -u` "wating for RECONNECT --> voltageOff" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
7.s BIAS_CONTROL 7 5000
8FEEDBACK/START_TEMP_CONTROL 0.00
9FEEDBACK/ENABLE_OUTPUT 1
10.w 3000
11BIAS_CONTROL/SET_GLOBAL_DAC 1
12.s BIAS_CONTROL 9
13FEEDBACK/ENABLE_OUTPUT 0
14FEEDBACK/STOP
15.s FEEDBACK 6
16.w 500
17.! echo `date -u` "calibrating bias crate current readings..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
18FEEDBACK/CALIBRATE_CURRENTS
19.s FEEDBACK 13
20.s FEEDBACK 6
21.w 3000
22FEEDBACK/START_TEMP_CONTROL 0.00
23.w 500
24FEEDBACK/ENABLE_OUTPUT 1
25BIAS_CONTROL/SET_ZERO_VOLTAGE
26.s BIAS_CONTROL 7
27.! echo `date -u` "bias voltage is switched off" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
28FAD_CONTROL/START_DRS_CALIBRATION
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 DRS:Gain 1000 ..." >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
37MCP/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
43MCP/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
49FAD_CONTROL/SET_FILE_FORMAT 2
50MCP/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
56BIAS_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
63MCP/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
69BIAS_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
Note: See TracBrowser for help on using the repository browser.