root/trunk/setups/katrin/config.php

Revision trunk,171, 5.3 kB (checked in by Suren A. Chilingaryan <csa@dside.dyndns.org>, 1 year ago)

KATRIN code by Sebastian and few fixes to integrate it

Line 
1 <?php
2
3 $TITLE = "";
4 $MODULES = array("config", "slowcontrol", "alarms", "katrin", "graph", "wiki");
5
6 /*
7 $EXPORT_FORMATS = array (
8     "csv" => array(
9         'title' => "CSV",
10     ),
11     "xls" => array(
12         'title' => "Excel",
13         'handler' => "EXCEL",
14     )
15 );
16 */
17
18 $READER_DB_KATRIN = array(
19     "katrin" => array (
20         "title" => _("HauptSpektrometer"),
21         "reader" => "ZEUS",
22         "driver" => "mysql",
23         "host" => "localhost",
24         "port" => 0,
25         "user" => "zeus",
26         "password" => "zeus",
27         "database" => array ("hauptspektrometer"),
28 //        "disconnected" => true
29     ),
30     "katrindb" => array (
31         "title" => _("PreSpektrometer Zeus7"),
32         "reader" => "ZEUS",
33         "driver" => "mysql",
34         "host" => "localhost",
35         "port" => 0,
36         "user" => "adei",
37         "password" => "adei",
38         "database" => array ("katrinpse_archiv"),
39         "multibase" => true,
40 //        "database" => array ("katrinpse_archiv_20080331", "katrinpse_archiv_20071221", "katrinpse_archiv_20070924", "katrinpse_archiv_20070710"),
41 //        "database" => array ("katrinpse_archiv_1", "katrinpse_archiv_2", "katrinpse_archiv_3", "katrinpse_archiv_4", "katrinpse_archiv_5", "katrinpse_archiv_6"),
42         "disconnected" => false
43     ),
44     "toskanadb" => array (
45         "title" => _("PreSpektrometer Zeus8"),
46         "reader" => "ZEUS",
47         "driver" => "odbc",
48         "sqldrv" => "mssql",
49         "subdrv" => "FreeTDS",
50         //"host" => "192.168.8.6",
51             "host" => "itpfmdb1.ka.fzk.de",
52         "port" => 1433,
53         "user" => 'souren',
54         "password" => '$souren$',
55         "database" => array ("prespektrometer_rep"),
56         "timeout" => 200000,
57         "ping" => true
58     ),
59     "detector" => array (
60         "title" => _("KATRIN Detector"),
61         "reader" => "ZEUS",
62         "driver" => "odbc",
63         "sqldrv" => "mssql",
64         "subdrv" => "FreeTDS",
65 //        "host" => "128.95.93.87",
66 //        "database" => array ("katrin"),
67 //        "timeout" => 1500000,    // us
68 //        "ping" => true,        // host and port should be specified
69         "host" => "192.168.8.6",
70         "database" => array ("katrin_rep"),
71         "port" => 1433,
72         "user" => 'souren',
73         "password" => '$souren$',
74         "multibase" => false,
75         "timeout" => 200000,
76         "ping" => true,
77 //        "disconnected" => true
78     ),
79     "heiko" => array (
80         "title" => _("Magnetometer (ZEUS)"),
81         "reader" => "ZEUS",
82         "driver" => "odbc",
83         "sqldrv" => "mssql",
84         "subdrv" => "FreeTDS",
85         "host" => "192.168.8.6",
86         "database" => array ("dbMagnet-archive"),
87         "port" => 1433,
88         "user" => 'souren',
89         "password" => '$souren$',
90         "multibase" => false,
91         "timeout" => 200000,
92         "ping" => true
93 //        "disconnected" => true
94     ),
95     "opcreader" => array(
96         "title" => _("Magnetometer"),
97         "reader" => "DBReader",
98             "driver" => "odbc",
99             "sqldrv" => "mssql",
100             "subdrv" => "FreeTDS",
101             "host" => "192.168.8.6",
102             "port" => 1433,
103         "database" => array ("dbMagnet-archive"),
104         "user" => 'souren',
105         "password" => '$souren$',
106         "multibase" => false,
107         "timeout" => 200000,
108         "ping" => true
109     )
110 );
111
112 if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_KATRIN, $READER_DB);
113 else $READER_DB = $READER_DB_KATRIN;
114
115 $OPTIONS["katrindb"] = array(
116         "optimize_empty_cache" => true,
117 //        "graph_interpolate" => false,
118         "maximal_allowed_gap" => 120,
119         "ignore_invalid_data" => true
120 );
121
122 $OPTIONS["toskanadb"] = array(
123 //        "root_database" => "$ADEI_ROOT_STORAGE/root_prespektrometer.root",
124         "date_limit" => "2008-04-21 12:00:00",              //GMT
125         "optimize_empty_cache" => true,
126 //        "graph_interpolate" => false,
127         "maximal_allowed_gap" => 120,
128         "ignore_invalid_data" => true,
129 //        "fill_raw_first" => true,
130         "channel_uids" => "/^4\d\d[\-_]/",
131         "axis" => array(
132         "/^412-RTP/i" => "temperature"
133         )
134 );
135
136 $OPTIONS["detector"] = array(
137         "date_limit" => "2008-08-15 00:00:00",              //GMT
138         "optimize_empty_cache" => true,
139 //        "graph_interpolate" => false,
140         "maximal_allowed_gap" => 120,
141         "ignore_invalid_data" => true,
142 //        "fill_raw_first" => true,
143         "overcome_reader_faults" => true// Use CACHE if connection to reader is failed
144         "use_cache_timewindow" => true,
145         "channel_uids" => "/^4\d\d[\-_]/",
146         "timestamp_channels" => true,    // Groups is prefixed with two channels with accquisition timestamps (may give a number)
147         "alarm_severity" => 0
148 );
149
150 $OPTIONS["katrin__hauptspektrometer"] = array(
151         "backup" => "backup_hauptspektrometer",
152         "date_limit" => array("2007-07-01 00:00:00""2007-09-21 00:00:00"),
153         "optimize_empty_cache" => true,
154 //        "graph_interpolate" => false,
155         "maximal_allowed_gap" => 120,
156         "channel_uids" => "/^DAT_/",
157 /*        "axis" => array(
158         "/^DAT_RPP.*$/" => "0",
159         "*" =>"temperature"
160         )*/
161 );
162
163 $OPTIONS["opcreader"] = array(
164     "tables" => array(
165     "/^Wt\\\$LiveData\\\$(.*)$/" => array(
166         'gid' => '${1}',
167         'title' => '${1}'
168     )
169     ),
170     "groups" => array(
171     "/^(.*)$/" => 'mda.Wt$LiveData\$${1}'
172     ),
173     "columns" => array(
174     "time" => "WsDateTimeTicks",
175     "data" => "/^Ws_/"
176     ),
177     "timezone" => "Europe/Berlin",
178     "time_module" => "MSTICKS",
179     "timesort" => 1,
180     "min_resolution" => 10,
181     "ignore_subseconds" => false,
182     "optimize_empty_cache" => true,
183     "use_cache_timewindow" => true,
184     "use_md5_postfix" => true,
185     "channel_uids" => true,
186     "date_limit" => "2009-09-09 00:00:00"
187 );
188
189 ?>
190
Note: See TracBrowser for help on using the browser.