source: trunk/FACT++/ScriptsForDimCtrl/Ratescan.dim@ 14363

Last change on this file since 14363 was 14363, checked in by Jens Buss, 12 years ago
changed to new variable names and options
File size: 2.1 KB
Line 
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
10# ----------------------------------------------------
11
12> ======================================
13> RATESCAN
14> ======================================
15>-
16> Preparing Drive
17> ...stop tracking
18.j ${mode}
19
20# --------------------------------------
21
22:0
23.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
24> Manual tracking Mode
25> ---------------------
26> OPERATOR
27> change tracking in drivectrl manually
28>_
29> script will wait for drive
30> to be in state tracking
31>-
32.j 9
33
34# --------------------------------------
35
36:1
37.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
38> ...change tracking of telescope to:
39> ...Ra = ${ra}
40> ...Dec = ${dec}
41>-
42DRIVE_CONTROL/TRACK ${ra} ${dec}
43.j 9
44
45# --------------------------------------
46
47:2
48.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
49> ...change tracking of telescope to:
50> ...${source}
51>-
52DRIVE_CONTROL/TRACK_SOURCE 0 0 \"${source}\"
53.j 9
54
55# --------------------------------------
56
57:9
58.x ScriptsForDimCtrl/ServiceScripts/IsTracking.dim
59>---------------------------------------
60
61> Preparing FTM_CONTROL
62> ...configure Ratescan
63FTM_CONTROL/CONFIGURE ratescan
64
65>---------------------------------------
66
67> Starting Ratescan
68> ...waiting for Ratescan
69> to be in state 4: Connected
70.s RATE_SCAN 4 5000 256
71RATE_SCAN/START_THRESHOLD_SCAN 50 1000 -10
72.s RATE_SCAN 6 10000 257
73> ...processing ratescan
74
75> ======================================
76> Ratescan finished
77> ======================================
78.j 301
79
80:256
81>---------------------------------------
82> Rate_Scan not in correct state
83>-
84> OPERATOR:
85> + check connection to ftm control
86>---------------------------------------
87.j 300
88
89:257
90>---------------------------------------
91> ratescan not started
92>---------------------------------------
93
94:300
95> ======================================
96> Ratescan NOT successfull
97> ======================================
98:301
Note: See TracBrowser for help on using the repository browser.