1 | # DIM_CONTROL: Crab tracking and data taking
|
---|
2 | .! echo
|
---|
3 | .! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
4 | .! echo `date -u` "Data taking and tracking script for Crab starting up... " >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
5 | .! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
6 |
|
---|
7 | # changing tracking to Crab Wobble 1
|
---|
8 | .! echo `date -u` "moving telescope to wobble position 1" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
9 | .! echo `date -u` "...waiting for drivectrl to be ready to move" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
10 | .s DRIVE_CONTROL 5
|
---|
11 | .w 3000
|
---|
12 | DRIVE_CONTROL/TRACK_SOURCE 0.6 50 Crab
|
---|
13 | .! echo `date -u` "...sent tracking command" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
14 |
|
---|
15 | # Wait for drivectrl to repley that its tracking the given source
|
---|
16 | .s DRIVE_CONTROL 6
|
---|
17 | .! echo `date -u` "...moving" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
18 | .s DRIVE_CONTROL 7
|
---|
19 | .! echo `date -u` "...tracking above written wobble position" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
20 | .! echo `date -u` "...waiting 30 sec for drive to calm downe" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
21 | .! echo
|
---|
22 | .w 30000
|
---|
23 |
|
---|
24 | # starting data taking of Crab Wobble 1
|
---|
25 | .x ScriptsForDimCtrl/DataTaking1
|
---|
26 |
|
---|
27 | # Stop tracking
|
---|
28 | .w 3000
|
---|
29 | DRIVE_CONTROL/STOP
|
---|
30 | .s DRIVE_CONTROL 5
|
---|
31 | .! echo
|
---|
32 | .! echo `date -u` "...stopped tracking of above wobble position" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
33 | .! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
34 | .! echo
|
---|
35 |
|
---|
36 | # changing tracking to Crab Wobble 2
|
---|
37 | .! echo
|
---|
38 | .! echo `date -u` "Moving telescope to wobble Position 2" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
39 | .! echo `date -u` "...waiting for drivectrl to be ready to move" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
40 | .s DRIVE_CONTROL 5
|
---|
41 | .w 3000
|
---|
42 | DRIVE_CONTROL/TRACK_SOURCE 0.6 -130 Crab
|
---|
43 | .! echo `date -u` "...sent tracking command" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
44 |
|
---|
45 | # Wait for drivectrl to reply that its tracking the given source
|
---|
46 | .s DRIVE_CONTROL 6
|
---|
47 | .! echo `date -u` "...moving" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
48 | .s DRIVE_CONTROL 7
|
---|
49 | .! echo `date -u` "...tracking above written wobble position" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
50 | .! echo `date -u` "...waiting 30 sec for drive to calm downe" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
51 | .! echo
|
---|
52 | .w 30000
|
---|
53 |
|
---|
54 | # data taking to Crab Wobble 2
|
---|
55 | .x ScriptsForDimCtrl/DataTaking2
|
---|
56 |
|
---|
57 | # Stop tracking
|
---|
58 | .w 3000
|
---|
59 | DRIVE_CONTROL/STOP
|
---|
60 | .s DRIVE_CONTROL 5
|
---|
61 | .! echo
|
---|
62 | .! echo `date -u` "...stopped tracking of Crab at above wobble position" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
63 | .! echo `date -u` "----------------------------------------------------" >> ~/FACT++/ScriptsForDimCtrl/DataTaking.log
|
---|
64 | .! echo
|
---|
65 |
|
---|