/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to setups/detector/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2014-01-25 16:38:03 UTC
  • Revision ID: csa@dside.dyndns.org-20140125163803-mhmpyk4dpzz7qabw
Detach setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
$ADEI_RELEASE = false;
4
 
 
5
 
$TITLE = "";
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
 
?>