/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to setups/detector/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2012-07-14 17:44:09 UTC
  • Revision ID: csa@dside.dyndns.org-20120714174409-cuzsy4vupyjx9lia
Update of setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
 
2
 
 
3
$ADEI_RELEASE = false;
 
4
 
2
5
$TITLE = "";
3
 
$MODULES = array("config", "slowcontrol", "alarms", "graph", "wiki");
4
 
 
5
 
 
6
 
$EXPORT_FORMATS = array (
7
 
        "csv" => array(
8
 
            'title' => "CSV",
9
 
        ),
10
 
        "xls" => array(
11
 
            'title' => "Excel",
12
 
            'handler' => "EXCEL",
13
 
        )
14
 
);
15
 
 
16
 
 
17
 
$READER_DB_TOSKA = array(
18
 
        "prespec" => array(
19
 
            "title" => _("ZEUS PreSpectrometer"),
20
 
            "reader" => "ZEUSController",
21
 
            "driver" => "odbc",
22
 
            "sqldrv" => "mssql",
23
 
            "subdrv" => "FreeTDS",
24
 
            "host" => "192.168.19.237",
25
 
            "port" => 1433,
26
 
            "user" => "zeus",
27
 
            "password" => 'zeus',
28
 
            "database" => array("prespektrometer"),
29
 
            "timeout" => 1500000,       // us, should be pretty big to receive updated values
30
 
            "ping" => true,             // host and port should be specified
31
 
            "control_host" => "192.168.19.237",
32
 
            "control_port" => 12345
33
 
        )
34
 
);
35
 
 
36
 
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_TOSKA, $READER_DB);
37
 
else $READER_DB = $READER_DB_TOSKA;
38
 
 
39
 
$OPTIONS["prespec"] = array(
40
 
            "optimize_empty_cache" => true,
41
 
            "ignore_invalid_data" => true,
42
 
//          "timestamp_channels" => true,
43
 
            "min_resolution" => 3600,
44
 
            "timestamp_channels" => true
45
 
);
46
 
 
47
 
?>
 
 
b'\\ No newline at end of file'
 
6
 
 
7
$READER_DB_DETECTOR = array(
 
8
        "detector" => array (
 
9
            "title" => _("Detector"),
 
10
            "reader" => "ZEUSController",
 
11
            "driver" => "odbc",
 
12
            "sqldrv" => "mssql",
 
13
            "subdrv" => "FreeTDS",
 
14
            "host" => "192.168.110.66",
 
15
            "database" => array ("katrin"),
 
16
            "port" => 1433,
 
17
            "user" => 'souren',
 
18
            "password" => '$souren$',
 
19
            "multibase" => false,
 
20
            "timeout" => 200000,
 
21
            "ping" => true,
 
22
            "control_host" => "192.168.110.66",
 
23
            "control_port" => 12345
 
24
//          "disconnected" => true
 
25
        ),
 
26
        "aircoils" => array (
 
27
            "title" => _("Air Coils"),
 
28
            "reader" => "ZEUSController",
 
29
            "driver" => "odbc",
 
30
            "sqldrv" => "mssql",
 
31
            "subdrv" => "FreeTDS",
 
32
            "host" => "192.168.110.121",
 
33
            "port" => 1433,
 
34
            "user" => 'souren',
 
35
            "password" => '$souren$',
 
36
            "database" => array ("aircoils"),
 
37
            "timeout" => 200000,
 
38
            "ping" => true,
 
39
            "control_host" => "192.168.110.65",
 
40
            "control_port" => 12345
 
41
//          "disconnected" => true
 
42
        ),
 
43
        "monitorspec" => array (
 
44
            "title" => _("Monitor Spectrometer"),
 
45
            "reader" => "ZEUSController",
 
46
            "driver" => "odbc",
 
47
            "sqldrv" => "mssql",
 
48
            "subdrv" => "FreeTDS",
 
49
            "host" => "192.168.110.89",
 
50
            "database" => array ("monitorspec"),
 
51
            "port" => 1433,
 
52
            "user" => 'souren',
 
53
            "password" => '$souren$',
 
54
            "multibase" => false,
 
55
            "timeout" => 200000,
 
56
            "ping" => true,
 
57
            "control_host" => "192.168.110.89",
 
58
            "control_port" => 12345
 
59
//          "disconnected" => true
 
60
        ),
 
61
        "orca" => array (
 
62
            "title" => _("ORCA Process"),
 
63
            "reader" => "IPEReader",
 
64
            "driver" => "mysql",
 
65
            "host" => "127.0.0.1",
 
66
            "port" => 3306,
 
67
            "user" => "root",
 
68
            "password" => "",
 
69
            "database" => array("orca_process"),
 
70
            "charset" => "ISO8859-1",
 
71
            "timeout" => 200000,        // us
 
72
//          "ping" => true,             // host and port should be specified
 
73
//          "disconnected" => true
 
74
        )
 
75
);
 
76
 
 
77
 
 
78
 
 
79
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_DETECTOR, $READER_DB);
 
80
else $READER_DB = $READER_DB_DETECTOR;
 
81
 
 
82
$OPTIONS["detector"] = array(
 
83
            "lclb_is_varchar" => true,
 
84
            "date_limit" => "2008-08-15 00:00:00",              //GMT
 
85
            "optimize_empty_cache" => true,
 
86
//          "graph_interpolate" => false,
 
87
            "maximal_allowed_gap" => 120,
 
88
            "ignore_invalid_data" => true,
 
89
//          "fill_raw_first" => true,
 
90
            "overcome_reader_faults" => true,  // Use CACHE if connection to reader is failed 
 
91
            "use_cache_timewindow" => true,
 
92
            "timestamp_channels" => true,       // Groups is prefixed with two channels with accquisition timestamps (may give a number)
 
93
            "alarm_severity" => 0,
 
94
            "channel_uids" => "/^5\d\d[\-_]/",
 
95
            "axis" => array(
 
96
                "/^522-RTP/i" => "temperature",
 
97
                "/^522-RP[PV]/i" => "vacuum"
 
98
            )
 
99
);
 
100
 
 
101
$OPTIONS["aircoils"] = array(
 
102
            "timestamp_channels" => true,       // Groups is prefixed with two channels with accquisition timestamps (may give a number)
 
103
            "date_limit" => "2008-04-21 12:00:00",              //GMT
 
104
            "optimize_empty_cache" => true,
 
105
//          "graph_interpolate" => false,
 
106
            "maximal_allowed_gap" => 120,
 
107
            "ignore_invalid_data" => true,
 
108
//          "fill_raw_first" => true,
 
109
            "channel_uids" => "/^4\d\d[\-_]/",
 
110
            "axis" => array(
 
111
                "/^412-RTP/i" => "temperature"
 
112
            )
 
113
);
 
114
 
 
115
/*
 
116
$ADEI_AXES = array_merge($ADEI_AXES, array(
 
117
        "T" => array(
 
118
            "axis_units" => _("C"),
 
119
            "axis_name" => _("Temperature - ak"),
 
120
            "axis_mode" => "STANDARD",
 
121
            "axis_range" => false
 
122
        )
 
123
);
 
124
*/
 
125
 
 
126
$AXIS_DEFS = array(
 
127
        "/\(C\)/"   => "temperature",
 
128
        "/\(nA\)/"  => "current_nano",
 
129
        "/\(#\)/"    => "number",
 
130
        "/\(V\)/"    => "voltage"
 
131
);
 
132
 
 
133
$OPTIONS["orca"] = array(
 
134
            "groups" => array(
 
135
                "/^(.*)$/" => '${1}',
 
136
            ),
 
137
            "tables" => array(
 
138
                "/^(Data_0[\w\d_]+)$/" => array(
 
139
                    'gid' => '${1}',
 
140
                    'title' => '${1}'
 
141
                )
 
142
            ),
 
143
            "columns" => array(
 
144
                "time" => "sec",
 
145
               "data" => "/^\d+/" 
 
146
            ),
 
147
            "timesort" => 1,                                    // 0 - NATURAL, 1 - ASC, -1 - DESC, string whith request
 
148
//            "time_module" => "USECTICKS",
 
149
            "time_format" => "U",
 
150
            "min_resolution" => 10,
 
151
            "ignore_subseconds" => true,
 
152
            "optimize_empty_cache" => true,
 
153
            "use_cache_timewindow" => true,
 
154
//          "use_cache_reader" => true,
 
155
            "use_md5_postfix" => true,
 
156
            "axis" => $AXIS_DEFS,
 
157
//            "axes_table" => array(
 
158
//                "table" => "Axislist",
 
159
//                "id" => "id",
 
160
//                "properties" => array(
 
161
//                    "axis_name" => "comment",
 
162
//                    "axis_units" => "unit"
 
163
//                )
 
164
//            ),
 
165
            "item_table" => array(
 
166
                "table" => "Sensorlist",
 
167
                "id" => "name",
 
168
                //"gid" => "group",
 
169
                "properties" => array(
 
170
                    "uid" => "comment",
 
171
                    "name" => "comment",
 
172
                    //"axis" => "axis"
 
173
                )
 
174
            ),
 
175
            "data_filters" => array(
 
176
                "BADVALUEFilter" => array (
 
177
                    "badvalue" => -50
 
178
                )
 
179
            )
 
180
);
 
181
 
 
182
 
 
183
?>