1 | #!dimctrl --exec
|
---|
2 |
|
---|
3 | # ==========================================================================
|
---|
4 | # Ratescan
|
---|
5 | # ==========================================================================
|
---|
6 | # Script for taking a Ratescan
|
---|
7 |
|
---|
8 | # call it by: .x ScriptsForDimCtrl/Ratescan.dim mode=<trackmode> ra=<Right ascension> dec=<Declination> source=<source_name>
|
---|
9 | # mode=0: Manual tracking Mode: set tracking in drivectrl manually
|
---|
10 | # mode=1: Coordinate Mode: scripts sends tracking command to drivectrl with the given RaDec coordinates
|
---|
11 | # mode=2: source Mode: scripts sends tracking command to drivectrl with the given source_name
|
---|
12 | # ----------------------------------------------------
|
---|
13 |
|
---|
14 | > ======================================
|
---|
15 | > RATESCAN
|
---|
16 | > ======================================
|
---|
17 | >-
|
---|
18 | > Preparing Drive
|
---|
19 | > ...stop tracking
|
---|
20 | .j ${mode}
|
---|
21 |
|
---|
22 | # --------------------------------------
|
---|
23 |
|
---|
24 | :0
|
---|
25 | .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
|
---|
26 | > Manual tracking Mode
|
---|
27 | > ---------------------
|
---|
28 | > OPERATOR
|
---|
29 | > change tracking in drivectrl manually
|
---|
30 | >_
|
---|
31 | > script will wait for drive
|
---|
32 | > to be in state tracking
|
---|
33 | >-
|
---|
34 | .j 9
|
---|
35 |
|
---|
36 | # --------------------------------------
|
---|
37 |
|
---|
38 | :1
|
---|
39 | .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
|
---|
40 | > ...change tracking of telescope to:
|
---|
41 | > ...Ra = ${ra}
|
---|
42 | > ...Dec = ${dec}
|
---|
43 | >-
|
---|
44 | DRIVE_CONTROL/TRACK ${ra} ${dec}
|
---|
45 | .j 9
|
---|
46 |
|
---|
47 | # --------------------------------------
|
---|
48 |
|
---|
49 | :2
|
---|
50 | .x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
|
---|
51 | > ...change tracking of telescope to:
|
---|
52 | > ...${source}
|
---|
53 | >-
|
---|
54 | DRIVE_CONTROL/TRACK_SOURCE 0 0 \"${source}\"
|
---|
55 | .j 9
|
---|
56 |
|
---|
57 | # --------------------------------------
|
---|
58 |
|
---|
59 | :9
|
---|
60 | .x ScriptsForDimCtrl/ServiceScripts/IsTracking.dim
|
---|
61 | >---------------------------------------
|
---|
62 | #
|
---|
63 | #> Preparing FTM_CONTROL
|
---|
64 | #> ...configure Ratescan
|
---|
65 | # FTM_CONTROL/CONFIGURE ratescan
|
---|
66 | #
|
---|
67 | #>---------------------------------------
|
---|
68 |
|
---|
69 | > Starting Ratescan
|
---|
70 | > ...waiting for Ratescan
|
---|
71 | > to be in state 4: Connected
|
---|
72 | .s RATE_SCAN 4 5000 256
|
---|
73 | RATE_SCAN/START_THRESHOLD_SCAN 50 1000 -10
|
---|
74 | .s RATE_SCAN 6 10000 257
|
---|
75 | > ...processing ratescan
|
---|
76 |
|
---|
77 | > ======================================
|
---|
78 | > Ratescan finished
|
---|
79 | > ======================================
|
---|
80 | .j 301
|
---|
81 |
|
---|
82 | :256
|
---|
83 | >---------------------------------------
|
---|
84 | > Rate_Scan not in correct state
|
---|
85 | >-
|
---|
86 | > OPERATOR:
|
---|
87 | > + check connection to ftm control
|
---|
88 | >---------------------------------------
|
---|
89 | .j 300
|
---|
90 |
|
---|
91 | :257
|
---|
92 | >---------------------------------------
|
---|
93 | > ratescan not started
|
---|
94 | >---------------------------------------
|
---|
95 |
|
---|
96 | :300
|
---|
97 | > ======================================
|
---|
98 | > Ratescan NOT successfull
|
---|
99 | > ======================================
|
---|
100 | :301
|
---|