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

Last change on this file since 19921 was 14424, checked in by Daniela Dorner, 12 years ago
added FAD_CONTROL/RESET_CONFIGURE
File size: 2.6 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# 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.j ${mode}
20
21# --------------------------------------
22
23:0
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> ...stop tracking
38.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
39> ...change tracking of telescope to:
40> ...Ra = ${ra}
41> ...Dec = ${dec}
42>-
43DRIVE_CONTROL/TRACK ${ra} ${dec}
44.j 9
45
46# --------------------------------------
47
48:2
49> ...stop tracking
50.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim
51> ...change tracking of telescope to:
52> ...${source}
53>-
54DRIVE_CONTROL/TRACK_SOURCE 0 0 "${source}"
55.j 9
56
57# --------------------------------------
58
59:9
60# check drive system
61.x ScriptsForDimCtrl/ServiceScripts/IsTracking.dim
62
63# check system status
64.x ScriptsForDimCtrl/ServiceScripts/IsReadyForDataTaking.dim
65>---------------------------------------
66#
67#> Preparing FTM_CONTROL
68#> ...configure Ratescan
69# FTM_CONTROL/CONFIGURE ratescan
70#
71#>---------------------------------------
72
73> Starting Ratescan
74> ...waiting for Ratescan
75> to be in state 4: Connected
76.s RATE_SCAN 4 5000 256
77RATE_SCAN/START_THRESHOLD_SCAN 50 1000 -10
78.s RATE_SCAN 6 10000 257
79> ...processing ratescan
80.s RATE_SCAN 4 2700000 300
81> ...resetting FAD configuration
82FAD_CONTROL/RESET_CONFIGURE
83> ======================================
84> Ratescan finished
85> ======================================
86.j 301
87
88:256
89>---------------------------------------
90> Rate_Scan not in correct state
91>-
92> OPERATOR:
93> + check connection to ftm control
94>---------------------------------------
95.j 300
96
97:257
98>---------------------------------------
99> ratescan not started
100>---------------------------------------
101
102:300
103> ======================================
104> Ratescan NOT successfull
105> ======================================
106:301
Note: See TracBrowser for help on using the repository browser.