/dev/trunk

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

« back to all changes in this revision

Viewing changes to setups/katrin/config.php

  • Committer: Suren A. Chilingaryan
  • Date: 2010-02-24 03:02:44 UTC
  • Revision ID: csa@dside.dyndns.org-20100224030244-8lb5hmrvr777vcw5
Updated Katrin configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            "password" => "adei",
38
38
            "database" => array ("katrinpse_archiv"),
39
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
 
40
//          "disconnected" => true
43
41
        ),
44
42
        "toskanadb" => array (
45
 
            "title" => _("PreSpektrometer Zeus8"),
 
43
            "title" => _("PreSpektrometer/Zeus8"),
46
44
            "reader" => "ZEUS",
47
45
            "driver" => "odbc",
48
46
            "sqldrv" => "mssql",
49
47
            "subdrv" => "FreeTDS",
50
 
            //"host" => "192.168.8.6",
51
 
            "host" => "itpfmdb1.ka.fzk.de",
 
48
            "host" => "ipepdvmssqldb1.ka.fzk.de",
52
49
            "port" => 1433,
53
50
            "user" => 'souren',
54
51
            "password" => '$souren$',
55
52
            "database" => array ("prespektrometer_rep"),
56
53
            "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
54
            "ping" => true,
77
55
//          "disconnected" => true
78
56
        ),
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
57
        "opcreader" => array(
96
 
            "title" => _("Magnetometer"),
 
58
            "title" => _("MainSpektrometer/OPC"),
97
59
            "reader" => "DBReader",
98
60
            "driver" => "odbc",
99
61
            "sqldrv" => "mssql",
100
62
            "subdrv" => "FreeTDS",
101
 
            "host" => "192.168.8.6",
 
63
            "host" => "ipepdvmssqldb1.ka.fzk.de",
102
64
            "port" => 1433,
103
 
            "database" => array ("dbMagnet-archive"),
104
 
            "user" => 'souren',
105
 
            "password" => '$souren$',
106
 
            "multibase" => false,
107
 
            "timeout" => 200000,
108
 
            "ping" => true
109
 
        )
 
65
            "database" => array ("dbMagnet-archive", "dbMagnet-archive_rep", "KatrinOPCTest"),
 
66
            "user" => 'souren',
 
67
            "password" => '$souren$',
 
68
            "multibase" => false,
 
69
            "timeout" => 200000,
 
70
            "ping" => true,
 
71
//          "disconnected" => true
 
72
       ),
 
73
        "detector" => array (
 
74
            "title" => _("KATRIN Detector"),
 
75
            "reader" => "ZEUS",
 
76
            "driver" => "odbc",
 
77
            "sqldrv" => "mssql",
 
78
            "subdrv" => "FreeTDS",
 
79
            "host" => "ipepdvmssqldb1.ka.fzk.de",
 
80
            "database" => array ("katrin_rep"),
 
81
            "port" => 1433,
 
82
            "user" => 'souren',
 
83
            "password" => '$souren$',
 
84
            "multibase" => false,
 
85
            "timeout" => 200000,
 
86
            "ping" => true,
 
87
//          "disconnected" => true
 
88
        ),
 
89
       "kdb" => array(
 
90
            "title" => _("KATRIN Database"),
 
91
            "reader" => "KATRINreader",
 
92
            "database" => array ("kps")
 
93
       )
110
94
);
111
95
 
 
96
 
112
97
if (is_array($READER_DB)) $READER_DB = array_merge($READER_DB_KATRIN, $READER_DB);
113
98
else $READER_DB = $READER_DB_KATRIN;
114
99
 
142
127
//          "fill_raw_first" => true,
143
128
            "overcome_reader_faults" => true,  // Use CACHE if connection to reader is failed 
144
129
            "use_cache_timewindow" => true,
145
 
            "channel_uids" => "/^4\d\d[\-_]/",
146
130
            "timestamp_channels" => true,       // Groups is prefixed with two channels with accquisition timestamps (may give a number)
147
 
            "alarm_severity" => 0
 
131
            "alarm_severity" => 0,
 
132
            "channel_uids" => "/^5\d\d[\-_]/",
 
133
            "axis" => array(
 
134
                "/^522-RTP/i" => "temperature",
 
135
                "/^522-RP[PV]/i" => "vacuum"
 
136
            )
148
137
);
149
138
 
150
139
$OPTIONS["katrin__hauptspektrometer"] = array(
168
157
        )
169
158
    ),
170
159
    "groups" => array(
171
 
        "/^(.*)$/" => 'mda.Wt$LiveData\$${1}'
 
160
        "/^(.*)$/" => 'mda.[Wt$LiveData\$${1}]'
172
161
    ),
173
162
    "columns" => array(
174
163
        "time" => "WsDateTimeTicks",
175
 
        "data" => "/^Ws_/"
 
164
        "data" => "/^Ws(Ch)?_/"
176
165
    ),
177
166
    "timezone" => "Europe/Berlin",
178
167
    "time_module" => "MSTICKS",
186
175
    "date_limit" => "2009-09-09 00:00:00"
187
176
);
188
177
 
 
178
$OPTIONS["opcreader__dbMagnet-archive_rep"] = array(
 
179
    "mask_table" => array(
 
180
        "table" => 'mda.[Wt$ConfigData$Masks]',
 
181
        "id" => "WsTID",
 
182
        "gid" => "WsTable",
 
183
        "properties" => array(
 
184
            "name" => "WsName",
 
185
            "mask" => "WsChannels"
 
186
        )
 
187
    )
 
188
);
 
189
 
 
190
$OPTIONS["opcreader__KatrinOPCTest"] = array(
 
191
    "tables" => array(
 
192
        "/^Wv\\\$LiveData\\\$(.*)$/" => array(
 
193
            'gid' => '${1}',
 
194
            'title' => '${1}'
 
195
        )
 
196
    ),
 
197
    "groups" => array(
 
198
        "/^(.*)$/" => '[Wv$LiveData\$${1}]'
 
199
    ),
 
200
    "columns" => array(
 
201
        "time" => "WsDateTimeTicks",
 
202
        "data" => "/^\d+/"
 
203
    )
 
204
);
 
205
 
 
206
$OPTIONS["kdb"] = array(
 
207
    "date_limit" => "2009-11-00 00:00:00"
 
208
);
 
209
 
189
210
?>