7
if (file_exists("/opt/katrin/etc/kdbserver.conf")) {
8
$MODULES = array("alarms", "katrin", "download", "infopage", "graph", "wiki");
9
$CONTROLS = array("export", "aggregator", "searchtab", false, "virtual", "filter"); // false/null indicates line break
10
$CONTROLS = array("infotab", "searchtab", "filter", false, "export", "aggregator", "plot", false, "virtual"); // false/null indicates line break
12
$MODULES = array("alarms", "download", "infopage", "graph", "wiki");
13
$CONTROLS = array("infotab", "searchtab", "virtual", false, "export", "aggregator", "plot"); // false/null indicates line break
16
$ADEI_AXES = array_merge($ADEI_AXES, array(
18
"axis_units" => _("C/min"),
19
"axis_name" => _("Heat-rate"),
26
$READER_DB_KATRIN = array(
28
"title" => _("520 Focal Plane Detector"),
29
"reader" => "KATRINZEUSReader",
32
"subdrv" => "FreeTDS",
33
"host" => "ipepdvmssqldb1.ka.fzk.de",
34
"database" => array ("katrin_rep", "katrin_us"),
35
"charset" => "ISO8859-1",
38
"password" => '$souren$',
44
"title" => _("520 Focal Plane Detector/ORCA"),
45
"reader" => "IPEReader",
47
"host" => "127.0.0.1",
51
"database" => array("orca_process"),
52
"charset" => "ISO8859-1",
53
"timeout" => 200000, // us
54
// "ping" => true, // host and port should be specified
55
// "disconnected" => true
58
"title" => _("433 Air Coils"),
59
"reader" => "KATRINZEUSReader",
62
"subdrv" => "FreeTDS",
63
"host" => "ipepdvmssqldb1.ka.fzk.de",
66
"password" => '$souren$',
67
"database" => array ("aircoils_rep"),
72
"title" => _("435 Temperatures"),
73
"reader" => "KATRINDBReader",
76
"subdrv" => "FreeTDS",
77
"host" => "ikkatrinmssql3.ka.fzk.de",
79
"database" => array ("BakeOut2013"),
80
"charset" => "ISO8859-1",
82
"password" => '$souren$',
87
"magnetometer0" => array(
88
"title" => _("433 Magnetometer"),
89
"reader" => "KATRINDBReader",
92
"subdrv" => "FreeTDS",
93
"host" => "ikkatrinmssql3.ka.fzk.de",
95
"database" => array ("dbMagnet-archive_rep"),
97
"password" => '$souren$',
103
"title" => _("436 High Voltage"),
104
"reader" => "KATRINZEUSReader",
107
"subdrv" => "FreeTDS",
108
"host" => "ipepdvmssqldb1.ka.fzk.de",
111
"password" => '$souren$',
112
"database" => array ("katrin-hv_rep"),
113
"charset" => "ISO8859-1",
118
"title" => _("430 Control System"),
119
"reader" => "KATRINDBReader",
122
"subdrv" => "FreeTDS",
123
"host" => "ikkatrinmssql3.ka.fzk.de",
125
"database" => array ("ControlSystem_MS"),
127
"password" => '$souren$',
128
"multibase" => false,
134
"title" => _("440 Monitor Spectrometer / ZEUS"),
135
"reader" => "KATRINZEUSReader",
138
"subdrv" => "FreeTDS",
139
"host" => "ipepdvmssqldb1.ka.fzk.de",
142
"password" => '$souren$',
143
"database" => array ("Monitorspeczeus_rep"),
148
"title" => _("440 Monitor Spectrometer / OPC"),
149
"reader" => "KATRINDBReader",
152
"subdrv" => "FreeTDS",
153
"host" => "ikkatrinmssql3.ka.fzk.de",
155
"database" => array ("MonitorSpec_rep"),
157
"password" => '$souren$',
158
"multibase" => false,
163
"title" => _("440 Control System"),
164
"reader" => "KATRINDBReader",
167
"subdrv" => "FreeTDS",
168
"host" => "ikkatrinmssql3.ka.fzk.de",
170
"database" => array ("ControlSystem_MoS"),
172
"password" => '$souren$',
178
"title" => _("600 Tritium Loops"),
179
"reader" => "KATRINDBReader",
182
"subdrv" => "FreeTDS",
183
"host" => "ikkatrinmssql3.ka.fzk.de",
185
"database" => array ("ControlSystem_TLOOPS"),
187
"password" => '$souren$',
193
"title" => _("800 Control System"),
194
"reader" => "KATRINDBReader",
197
"subdrv" => "FreeTDS",
198
"host" => "ikkatrinmssql3.ka.fzk.de",
200
"database" => array ("ControlSystem_rep"),
202
"password" => '$souren$',
208
"title" => _("451 Test Cylinder"),
209
"reader" => "KATRINZEUSReader",
212
"subdrv" => "FreeTDS",
213
"host" => "ipepdvmssqldb1.ka.fzk.de",
216
"password" => '$souren$',
217
"database" => array ("testcylinder"),
222
"title" => _("410 PreSpectrometer"),
223
"reader" => "KATRINZEUSReader",
225
"host" => "localhost",
228
"password" => 'adei',
229
"database" => array ("katrinpse"),
233
"vessel_test" => array (
234
"title" => _("430 Vessel Commisioning"),
235
"reader" => "KATRINZEUSReader",
237
"host" => "localhost",
240
"password" => "adei",
241
"database" => array ("katrinvessel"),
246
if ($ADEI_SETUP == "katrin") {
247
$READER_DB_KATRIN["kdb"] = array(
248
"title" => _("KATRIN Database"),
249
"reader" => "KATRINreader",
250
"database" => array ("Pre Spectrometer")
256
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_KATRIN, $READER_DB);
257
else $READER_DB = $READER_DB_KATRIN;
260
// This is ZEUS7 sources
263
$OPTIONS_ZEUS7 = array(
264
"optimize_empty_cache" => true,
265
"maximal_allowed_gap" => 120,
266
"ignore_invalid_data" => true
269
$OPTIONS["pse"] = array_merge($OPTIONS_ZEUS7, array(
272
$OPTIONS["vessel_test"] = array_merge($OPTIONS_ZEUS7, array(
273
"date_limit" => array("2007-07-01 00:00:00", "2007-09-21 00:00:00"),
274
"channel_uids" => "/^DAT_/",
277
// This is ZEUS8 sources
278
$OPTIONS_ZEUS = array(
279
"maximal_allowed_gap" => 120,
280
"ignore_invalid_data" => true,
281
"optimize_empty_cache" => true,
282
"use_md5_postfix" => false,
283
"date_limit" => "2008-04-21 12:00:00", //GMT
284
"channel_uids" => "/^[45]\d\d[\-_]/",
286
"/^412-RTP/i" => "temperature",
287
"/^522-RTP/i" => "temperature",
288
"/^522-RP[PV]/i" => "pressure/milli"
292
$OPTIONS["pse__katrinpse"] = array_merge($OPTIONS_ZEUS, array(
295
$OPTIONS["aircoils"] = array_merge($OPTIONS_ZEUS, array(
298
$OPTIONS["mos"] = array_merge($OPTIONS_ZEUS, array(
301
$OPTIONS["hv"] = array_merge($OPTIONS_ZEUS, array(
302
"date_limit" => "2012-09-01 00:00:00", //GMT
305
$OPTIONS["tc"] = array_merge($OPTIONS_ZEUS, array(
308
$OPTIONS["fpd"] = array_merge($OPTIONS_ZEUS, array(
309
"alarm_severity" => 0
312
$OPTIONS["fpd__katrin_rep_20121130"] = array_merge($OPTIONS_ZEUS, array(
313
"data_filters" => array(
315
"class" => "LENGTHFilter",
316
"add_missing_items" => true,
317
"remove_extra_items" => true,
318
"ignore_invalid_data" => true
320
"class" => "NULLFilter",
321
"use_missing_items" => true,
322
"check_growth" => true,
323
"check_precise" => true,
328
// This is DBReader sources
330
$MAGNET_AXIS_DEFS = array(
331
"/\(C\)/" => "Temperature (C)",
332
"/\(uT\)/" => "Magnetic field (uT)",
333
"/\(-\)/" => "Status/error flag (-)",
334
"/\(V\)/" => "Voltage (V)"
338
// "timezone" => "Europe/Berlin",
339
"time_module" => "MSTICKS",
341
"min_resolution" => 10,
342
"ignore_subseconds" => false,
343
"optimize_empty_cache" => true,
344
"use_cache_timewindow" => true,
345
"use_md5_postfix" => true,
346
"channel_uids" => true,
347
"date_limit" => "2009-09-09 00:00:00",
349
"/^Wv\\\$LiveData\\\$(.*)$/" => array(
355
"/^(.*)$/" => '[Wv$LiveData\$${1}]'
358
"time" => "WsDateTimeTicks",
363
$OPTIONS["temp0"] = array_merge($OPTIONS_DB, array(
364
"item_table" => array(
365
"table" => 'cda.[Wt$ConfigData$TempMonSensors]',
367
"properties" => array(
368
"name" => "WsDescription",
374
$OPTIONS["magnetometer0"] = array_merge($OPTIONS_DB, array(
376
"/^Wt\\\$LiveData\\\$(.*)$/" => array(
382
"/^(.*)$/" => 'mda.[Wt$LiveData\$${1}]'
385
"time" => "WsDateTimeTicks",
386
"data" => "/^Ws(Ch)?_/"
388
"axis" => $MAGNET_AXIS_DEFS,
389
"mask_table" => array(
390
"table" => 'mda.[Wt$ConfigData$Masks]',
393
"properties" => array(
395
"mask" => "WsChannels"
398
"item_table" => array(
399
"table" => 'mda.[Wt$ConfigData$SensorlistRing2]',
401
"properties" => array(
408
$OPTIONS["mos0"] = array_merge($OPTIONS_DB, array(
410
"time" => "WsDateTimeTicks",
411
"data" => "/^(MoS|MoU|\d)/"
415
$OPTIONS["cs0"] = array_merge($OPTIONS_DB, array(
417
"/^Wv\\\$LiveData\\\$(\d+.*)$/" => array(
424
$OPTIONS["csms"] = $OPTIONS["cs0"];
425
$OPTIONS["csmos"] = $OPTIONS["cs0"];
426
$OPTIONS["cstloops"] = $OPTIONS["cs0"];
429
// This is channel spleating
430
$OPTIONS["cs0__ControlSystem_rep.20120207"] = array(
432
"/^Wv\\\$LiveData\\\$(MonSpec435)$/" => array(
442
"/^Wv\\\$LiveData\\\$(MonSpec.*)$/" => array(
448
"/^([^@]*)(@\d)?$/" => '[Wv$LiveData\$${1}]'
452
$OPTIONS["cs0__ControlSystem_rep.20120207__MonSpec435@1"] = array(
454
"time" => "WsDateTimeTicks",
455
"data" => "/\/435[A-H]/"
459
$OPTIONS["cs0__ControlSystem_rep.20120207__MonSpec435@2"] = array(
461
"time" => "WsDateTimeTicks",
462
"data" => "/\/435[I-Z]/"
466
$OPTIONS["csmos__ControlSystem_MoS_201202__MonSpec435@1"] = $OPTIONS["cs0__ControlSystem_rep.20120207__MonSpec435@1"];
467
$OPTIONS["csmos__ControlSystem_MoS_201202__MonSpec435@2"] = $OPTIONS["cs0__ControlSystem_rep.20120207__MonSpec435@2"];
470
// This is plugin sources
472
$OPTIONS["kdb"] = array(
473
"date_limit" => "2009-11-00 00:00:00"
476
$SEARCH_ENGINES["KDBSearch"] = array();
479
$ORCA_AXIS_DEFS = array(
480
"/\(C\)/" => "temperature",
481
"/\(nA\)/" => "current/nano",
482
"/\(#\)/" => "number",
483
"/\(V\)/" => "voltage"
486
$OPTIONS["orca"] = array(
488
"/^(.*)$/" => '${1}',
491
"/^(Data_0[\w\d_]+)$/" => array(
500
"timesort" => 1, // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
501
// "time_module" => "USECTICKS",
502
"time_format" => "U",
503
"min_resolution" => 10,
504
"ignore_subseconds" => true,
505
"optimize_empty_cache" => true,
506
"use_cache_timewindow" => true,
507
// "use_cache_reader" => true,
508
"use_md5_postfix" => true,
509
"axis" => $ORCA_AXIS_DEFS,
510
// "axes_table" => array(
511
// "table" => "Axislist",
513
// "properties" => array(
514
// "axis_name" => "comment",
515
// "axis_units" => "unit"
518
"item_table" => array(
519
"table" => "Sensorlist",
522
"properties" => array(
528
"data_filters" => array(
529
"BADVALUEFilter" => array (