V 10
1
LANG:1 6 Values
PANEL,396 263 710 417 N "_3DFace" 0
"main()
{
/*
int i;
string datapoint;
for(i=0;i<=47;i++)
{
sprintf(datapoint,\"Crate00.Channel%02d.HVchVolt.Recv:_original.._value\",i);
dpSet(datapoint,0);
}
*/
}" 0
EE E E 1 -1 -1 0  30 40
"" 0 1
E"EP_childPanelOn()
{
 ChildPanelOnCentralModal(\"subpanels/ErrorMask.pnl\",\"\",makeDynString(\"\"));
}" 0
 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
6 522
"Border1"
""
1 10 417 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
497 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 10 10 180 417
2 381
"Text82"
""
1 180 40 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
365 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 182 42 708 408
1 2 0 "s" 0 0 0 65 0 0  182 42
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 24
"LVchannels"
""
1 180 10 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
24 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 182 12 708 38
1 2 0 "s" 0 0 0 64 0 0  182 12
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 93    LV NORMAL                                                                    ELMB LV FATAL
2 110
"Text57"
""
1 193 47 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
108 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 49 241 62
0 2 0 "s" 0 0 0 64 0 0  195 49
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vcc (V)
2 112
"Text58"
""
1 193 74 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
110 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 76 241 89
0 2 0 "s" 0 0 0 64 0 0  195 76
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vdd (V)
2 113
"Text59"
""
1 193 99 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
111 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 101 251 117
0 2 0 "s" 0 0 0 64 0 0  195 101
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 VCSEL (V)
2 116
"Text60"
""
1 193 124 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
114 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 126 261 142
0 2 0 "s" 0 0 0 64 0 0  195 126
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 PIN Bias (V)
2 117
"Text61"
""
1 193 177 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
115 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 179 271 195
0 2 0 "s" 0 0 0 64 0 0  195 179
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 Idd Trip (ms)
2 120
"Text62"
""
1 193 151 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
118 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 153 271 169
0 2 0 "s" 0 0 0 64 0 0  195 153
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 18 Icc Trip (ms) Trip
2 121
"Text63"
""
1 193 205 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
119 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 207 261 223
0 2 0 "s" 0 0 0 64 0 0  195 207
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Warn (C)
2 124
"Text64"
""
1 193 231 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
122 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 195 233 261 249
0 2 0 "s" 0 0 0 64 0 0  195 233
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Trip (C)
2 125
"Text65"
""
1 360 47 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
123 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 362 49 428 65
0 2 0 "s" 0 0 0 64 0 0  362 49
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Clock Sel
2 128
"Text66"
""
1 360 76 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
126 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 362 78 428 94
0 2 0 "s" 0 0 0 64 0 0  362 78
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Clock Res
2 129
"Text67"
""
1 360 100 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
127 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 362 102 408 115
0 2 0 "s" 0 0 0 64 0 0  362 102
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Out On
2 209
"Text5"
""
1 180 277 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
202 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 182 279 708 415
1 2 0 "s" 0 0 0 65 0 0  182 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 156
"Text92"
""
1 192 317 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
154 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 194 319 270 345
0 2 0 "s" 0 0 0 64 0 0  194 319
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Voltage (V)
2 157
"Text93"
""
1 192 345 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
155 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 194 347 280 363
0 2 0 "s" 0 0 0 64 0 0  194 347
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 15 Card Curr Trip 
2 158
"Text94"
""
1 192 381 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
156 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 194 383 240 396
0 2 0 "s" 0 0 0 64 0 0  194 383
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Ramp
2 383
"Text81"
""
1 180 272 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
367 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 182 274 708 300
1 2 0 "s" 0 0 0 64 0 0  182 274
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 90   HV NORMAL                                                                  ELMB HV FATAL
2 462
"Text35"
""
1 192 359 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
440 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 194 361 240 377
0 2 0 "s" 0 0 0 64 0 0  194 361
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 ( uA)
2 476
"Text1"
""
1 360 127 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
452 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 362 129 434 145
0 2 0 "s" 0 0 0 64 0 0  362 129
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13  LV card Trip
2 477
"Text2"
""
1 363 154 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
453 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 365 156 444 175
0 2 0 "s" 0 0 0 64 0 0  365 156
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 LV card Mask
2 500
"Text7"
""
1 544 53 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
476 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 546 55 612 71
0 2 0 "s" 0 0 0 64 0 0  546 55
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 T Link0 (C)
2 501
"Text8"
""
1 544 79 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
477 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 546 81 612 97
0 2 0 "s" 0 0 0 64 0 0  546 81
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 T Link1 (C)
2 504
"Text9"
""
1 544 111 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
480 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 546 113 592 126
0 2 0 "s" 0 0 0 64 0 0  546 113
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Out On
2 506
"Text10"
""
1 14 26 E E E 1 E 1 E N {51,0,51} E N "_Transparent" E E
 E E
482 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 16 28 172 64
0 2 0 "s" 0 0 0 64 0 0  16 28
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 19 step 1 select State
4 509
"Line2"
""
1 509 257 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
485 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  509 417 509 257
2 511
"Text11"
""
1 518 311 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
487 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 520 313 596 348
0 2 0 "s" 0 0 0 64 0 0  520 313
 2
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 Max Voltage 
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 (V)
2 512
"Text12"
""
1 518 345 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
488 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 520 347 606 378
0 2 0 "s" 0 0 0 64 0 0  520 347
 2
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 15 ELMB Curr Trip 
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 (uA)
2 517
"Text3"
""
1 15 99 E E E 1 E 1 E N {51,0,51} E N "_Transparent" E E
 E E
492 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 17 101 173 137
0 2 0 "s" 0 0 0 64 0 0  17 101
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 27 step 2 select channel/crate
2 518
"Text4"
""
1 13 212 E E E 1 E 1 E N {51,0,51} E N "_Transparent" E E
 E E
493 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 15 214 171 250
0 2 0 "s" 0 0 0 64 0 0  15 214
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 20 step 3 read back DB 
2 519
"Text6"
""
1 14 319 E E E 1 E 1 E N {51,0,51} E N "_Transparent" E E
 E E
494 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 16 321 172 376
0 2 0 "s" 0 0 0 64 0 0  16 321
 2
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 26 step 5 click here to save 
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
4 520
"Line1"
""
1 509 14 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
495 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  509 258 509 14
2 523
"Text13"
""
1 38 151 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
498 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 40 153 76 168
0 2 0 "s" 0 0 0 192 0 0  40 153
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Ch Nb.
2 524
"Text14"
""
1 39 124 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
499 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 41 126 75 141
0 2 0 "s" 0 0 0 192 0 0  41 126
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Cr Nb.
4 529
"Line3"
""
1 10 80 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
504 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  10 80 180 80
4 530
"Line4"
""
1 11 197 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
505 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  11 197 181 197
4 531
"Line5"
""
1 10 302 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
506 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  180 302 10 302
4 532
"Line6"
""
1 11 273 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
507 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  181 273 11 273
2 533
"Text15"
""
1 15 279 E E E 1 E 1 E N {51,0,51} E N "_Transparent" E E
 E E
508 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 17 281 173 336
0 2 0 "s" 0 0 0 64 0 0  17 281
 2
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 22 step 4 change a value 
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
14 465
"TextField6"
""
1 282 47 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
441 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 45 334 71
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVch_Vcc.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVch_Vcc.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVch_Vcc.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 466
"TextField7"
""
1 282 71 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
442 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 69 334 95
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVch_Vdd.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}

" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVch_Vdd.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVch_Vdd.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 467
"TextField8"
""
1 282 98 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
443 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 96 334 122
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchVCSV.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}

" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
    dpSetWait(\"SCTmops1:ReadDB.channel.LVchVCSV.Send:_original.._value\", sTmp);
//  sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchVCSV.Send:_original.._value\",crate,channel);
//  dpSetWait(datapoint, sTmp);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 468
"TextField9"
""
1 282 124 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
444 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 122 334 148
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchPINV.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
    dpSetWait(\"SCTmops1:ReadDB.channel.LVchPINV.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchPINV.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 469
"TextField10"
""
1 282 150 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
445 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 148 334 174
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchCTrp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVchCTrp.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchCTrp.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 470
"TextField11"
""
1 282 176 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
446 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 174 334 200
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchDTrp.Send:_original.._value\");
           
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVchDTrp.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchDTrp.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 471
"TextField13"
""
1 282 228 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
447 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 226 334 252
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchTTrp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
   dpSetWait(\"SCTmops1:ReadDB.channel.LVchTTrp.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchTTrp.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 472
"TextField12"
""
1 282 203 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
448 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
280 201 334 227
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchTLim.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVchTLim.Send:_original.._value\", sTmp);
//  sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchTLim.Send:_original.._value\",crate,channel);
//  dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 473
"TextField14"
""
1 449 46 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
449 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
447 44 501 70
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchCLKS.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
   dpSetWait(\"SCTmops1:ReadDB.channel.LVchCLKS.Send:_original.._value\", sTmp);
  //sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchCLKS.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 474
"TextField15"
""
1 449 73 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
450 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
447 71 501 97
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchCLKR.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
    dpSetWait(\"SCTmops1:ReadDB.channel.LVchCLKR.Send:_original.._value\", sTmp);
//  sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchCLKR.Send:_original.._value\",crate,channel);
//  dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 475
"TextField16"
""
1 449 99 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
451 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
447 97 501 123
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchVOut.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
    dpSetWait(\"SCTmops1:ReadDB.channel.LVchVOut.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchVOut.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 478
"TextField17"
""
1 449 125 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
454 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
447 123 501 149
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.card.LVcaTrip.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel,card;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
   card=channel/4;
     dpSetWait(\"SCTmops1:ReadDB.channel.LVcaTrip.Send:_original.._value\", sTmp);
  //sprintf(datapoint,\"SCTmops1:Crate%02d.LV_card%02d.LVcaTrip.Send:_original.._value\",crate,card);
  //dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 479
"TextField18"
""
1 449 152 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
455 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
447 150 501 176
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.card.LVcaMask.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel,card;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  card=channel/4;
    dpSetWait(\"SCTmops1:ReadDB.channel.LVcaMask.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,card);
 // dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 480
"TextField19"
""
1 283 317 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
456 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
281 315 375 341
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.HVchVolt.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.HVchVolt.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.HVchVolt.Send:_original.._value\",crate,channel);
  //dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 482
"TextField20"
""
1 283 346 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
458 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
281 344 375 370
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.HVchITrp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.HVchITrp.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.HVchITrp.Send:_original.._value\",crate,channel);
  //dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 502
"TextField1"
""
1 633 50 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
478 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
631 48 685 74
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchTTrp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp,s,dp,dp1,dp2;
float fNewValue;
shape cb;
int idx,show;
dyn_string para_split;
time tm; 
/*
cb=getShape(\"ComboBox4\");
idx=cb.selectedPos();
if(idx!=-1)
s=cb.selectedText(); // Text belonging to this item
else
s=\"List empty\";



if(s==\"OFF SETTINGS\") show=0;
else if(s==\"ON SETTINGS\") show=0;
else if(s==\"STB SETTINGS\") show=0;
else if(s==\"OFF ELMB FATALS\") show=1;
else if(s==\"ON ELMB FATALS\") show=1;
else if(s==\"STB ELMB FATALS\") show=1;

para_split=strsplit(datapoint3,\":\");

sscanf(para_split[1],\"%s\", dp);
sscanf(para_split[2],\"%s\", dp1);
dp2=dp1+\":_original.._stime\";
Debug(dp2,dp1);
dpGet(dp2,tm);
DebugN(\"time\",tm);
if(show==1)
{
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
else if(show==0)
{
value=0.0;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
*/
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}

" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchTTrp.Send:_original.._value\",crate,channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.LVchTTrp.Send:_original.._value\", sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 503
"TextField2"
""
1 633 78 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
479 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
631 76 685 102
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchTLim.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.LVchTLim.Send:_original.._value\",crate,channel);
   dpSetWait(\"SCTmops1:ReadDB.channel.LVchTLim.Send:_original.._value\", sTmp);

 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 505
"TextField3"
""
1 633 110 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
481 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
631 108 685 134
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.LVchVOut.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);

  dpSetWait(\"SCTmops1:ReadDB.channel.LVchVOut.Send:_original.._value\", sTmp);

   
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

13 507
"Button2"
""
1 29 349 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
483 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
27 347 161 380
T 
1
LANG:1 10 Send to DB
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

// SimpleCtrlScriptEnd {EP_toggleDP}

EP_setDP()
{
dyn_errClass err;
bool state;
int idx,i;
string s,dpeName;
shape cb;
string sParameter,addressCC;
dyn_string para_split,dparray;
int crate,timeout,iRST,channel,lvcard;
string stat;
float value;

setValue(\"\",\"foreCol\",\"Red\"); 
cb=getShape(\"ComboBox4\");
idx=cb.selectedPos();
if(idx!=-1)
s=cb.selectedText(); // Text belonging to this item
else
s=\"List empty\";
DebugN(s);



  if(s==\"OFF SETTINGS\") iRST=0;
  else if(s==\"ON SETTINGS\") iRST=1;
  else if(s==\"STB SETTINGS\") iRST=2;
  else if(s==\"OFF ELMB FATALS\") iRST=128;
  else if(s==\"ON ELMB FATALS\") iRST=129;
  else if(s==\"STB ELMB FATALS\") iRST=130;
 
//copy the values that have been read to the normal send DP in order to be able to send them

  dparray=makeDynString(\"LVch_Vcc\",\"LVch_Vdd\",\"LVchVCSV\",
                        \"LVchPINV\",\"LVchCTrp\",\"LVchDTrp\",
                        \"LVchTLim\",\"LVchTTrp\",\"LVchVOut\",
                        \"LVchCLKS\",\"LVchCLKR\",\"HVchVolt\",
                        \"HVchITrp\",\"HVchRamp\",\"LVcaTrip\",
                        \"LVcaMask\");
// Get Crate and channel Number
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
//setting again RST
  sprintf(addressCC, \"Crate%02d.Controller.CCcf_RST.Send:_original.._value\", crate); 
  dpSetWait(addressCC,iRST);
  //DebugN(\"channel\",crate,channel,iRST);
  for(i=1;i<=14;i++)
  {
    sprintf( dpeName, \"SCTmops1:ReadDB.channel.%s.Send\",dparray[i]);
    dpGet(dpeName,value);
    //DebugN(\"New datapoint\",dpeName,value);
    sprintf( dpeName, \"SCTmops1:Crate%02d.Channel%02d.%s.Send:_original.._value\",crate,channel,dparray[i]);   
    dpSet(dpeName,value);
    //DebugN(\"datapoint\",dpeName,value);
   }
  lvcard=channel/4;
  for(i=15;i<=16;i++)
    {
    sprintf( dpeName, \"SCTmops1:ReadDB.card.%s.Send\",dparray[i]);
    dpGet(dpeName,value);
    
    sprintf( dpeName, \"SCTmops1:Crate%02d.LV_card%02d.%s.Send:_original.._value\",crate,lvcard,dparray[i]);
    dpSet(dpeName,value);
	} 

// 1 = hardcoded values, 0 is configuration database, 2 manual
// set manual loading
   dpSetWait(\"SCTmops1:ChoiceDB.Data:_original.._value\", 2);
   sprintf(sParameter,crate+\"|\"+iRST+\"|\"+20);
//DebugN(\"sparameter\",sParameter);


  dpSet(\"SCTmops1:loadConfiguration.parameters:_original.._value\",sParameter);
  dpSet(\"SCTmops1:loadConfiguration.trigger:_original.._value\", 1);
  dpSet(\"SCTmops1:loadConfiguration.trigger:_original.._value\", 0);

      //PanelOff(\"changeDB.pnl\");
  setValue(\"\",\"foreCol\",\"\");
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:ChangeState.trigger}
// Config1 {:_original.._value}
// Type1 {bool}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
22 508
"ComboBox4"
""
1 20 50 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
484 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
18 48 162 74
6
1
LANG:1 12 OFF SETTINGS
 0
1
LANG:1 11 ON SETTINGS
 0
1
LANG:1 12 STB SETTINGS
 0
1
LANG:1 15 OFF ELMB FATALS
 0
1
LANG:1 14 ON ELMB FATALS
 0
1
LANG:1 15 STB ELMB FATALS
 0
E
E
E
 0 0
14 510
"TextField21"
""
1 283 374 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
486 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
281 372 375 398
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.HVchRamp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
 float fNewValue;
 dyn_errClass err;
 string sTmp;
 string sFormat, sDp,datapoint;
 int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.HVchRamp.Send:_original.._value\", sTmp);
 // sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.HVchRamp.Send:_original.._value\",crate,channel);
 // dpSetWait(datapoint, sTmp);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 513
"TextField4"
""
1 610 317 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
489 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
608 315 702 341
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.HVchVolt.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
 
  dpSetWait(\"SCTmops1:ReadDB.channel.HVchVolt.Send:_original.._value\", sTmp);

 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 514
"TextField5"
""
1 610 346 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
490 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
608 344 702 370
3 "s" 0 0 0 0 0 0 
E
"main()
{
 dpConnect(\"Get_channel\",\"Crate.Numb:_online.._value\",\"HVch.Numb:_online.._value\",
           \"SCTmops1:ReadDB.channel.HVchITrp.Send:_original.._value\");
}          
void Get_channel(string datapoint, int crate, string datapoint1, int channel,string datapoint3, float value)
{
string datapoint2;
string sTmp;
float fNewValue;
sprintf(sTmp,\"%f\",value);
setValue(\"\", \"text\", value );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
float fNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp,datapoint;
int crate,channel;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%f\", fNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  dpGet(\"HVch.Numb:_online.._value\",channel);
  dpSetWait(\"SCTmops1:ReadDB.channel.HVchITrp.Send:_original.._value\", sTmp);
//  sprintf(datapoint,\"SCTmops1:Crate%02d.Channel%02d.HVchITrp.Send:_original.._value\",crate,channel);
//  dpSetWait(datapoint, sTmp);

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Channel00.LVch_Vcc.Send}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

13 515
"Button1"
""
1 20 230 E E E 1 E 1 E N {51,0,51} E N {204,204,153} E E
 E E
490 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
18 228 152 263
T 
1
LANG:1 10 Read DB CC
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();

//!!!!!!!! VERY IMPORTANT !!!!!
// in order for the read of the databse the CCcf_Set DP has to be float64!!!!!!!
  
// Explanation of the phylosophy of the panel:  
// this panel allows you to read the DB only for one channel and change the values
// in the send SDO such that it can be saved back in the ELMB with some changes;
// When the DB is saved all the channels will be saved, but 
// after having read the DB all the values for the other channels will be in the SDO's
// only they can't be displayed in PVSS since they have in their address \"out\" direction
// and \"COMM\" OPC group  
// That's why the order of steps has to be followed rigorously
// The probelm is to see the values in PVSS:
// one would have to change the SDO DP from \"out\" to \"in\" and from \"Comm\" to \"Moni\"
// and then back again (which is too risky), or alternatively to double all datapoints;
// To avoid to double all datapoints, only one additional datapoint has been
// created that is used to DISPLAY in PVSS the DB values for a certain channel
// message conversion aslo had to be added in the new datapoint, else the values would arrive to PVSS
// as row values
}

EP_setDP()
{
dyn_errClass err;
int crate, i, channel,iRST;
string datapoint;
int idx;
string s;
shape cb;
dyn_string dparray;

  setValue(\"\",\"foreCol\",\"Red\");
  cb=getShape(\"ComboBox4\");
  idx=cb.selectedPos();
  if(idx!=-1)
  s=cb.selectedText(); // Text belonging to this item
  else
  s=\"List empty\";

  if(s==\"OFF SETTINGS\") iRST=0;
  else if(s==\"ON SETTINGS\") iRST=1;
  else if(s==\"STB SETTINGS\") iRST=2;
  else if(s==\"OFF ELMB FATALS\") iRST=128;
  else if(s==\"ON ELMB FATALS\") iRST=129;
  else if(s==\"STB ELMB FATALS\") iRST=130;
  dpGet(\"Crate.Numb:_original.._value\",crate);
  dpGet(\"HVch.Numb:_original.._value\",channel); 
  DebugN(\"very important\",s,iRST);
  dparray=makeDynString(\"LVch_Vcc\",\"LVch_Vdd\",\"LVchVCSV\",
                        \"LVchPINV\",\"LVchCTrp\",\"LVchDTrp\",
                        \"LVchTLim\",\"LVchTTrp\",\"LVchVOut\",
                        \"LVchCLKS\",\"LVchCLKR\",\"HVchVolt\",
                        \"HVchITrp\",\"HVchRamp\",\"LVcaTrip\",
                        \"LVcaMask\");
                          
  changedp(dparray,iRST,crate,channel);
  dpSet(\"Info.Name:_original.._value\", \"DB: Finished \");
  DebugN(\"DB: Finished\");

  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


void changedp(dyn_string dparray,int iRST, int crate,int channel)
{

string dpeName, OPCItemName;
string direction, opcServerName, OPCGroup, intDpeType;
int driverNum, i,j,lvcard, checkRST;
string addressCC,datapoint,datapoint2,field;	
float value;

  opcServerName = \"CANopen\";
  driverNum = 1;
  j=14;
  // two kind of sdo messages to avoid that the converted read back
  // message comes back when sending / saving the Sdo's
  dpSet(getSystemName()+\"_sdo1.RefreshTimer:_original.._value\",5);
  dpSet(getSystemName()+\"_sdo1.Active:_original.._value\",TRUE);
  dpSet(getSystemName()+\"_sdo1.EnableCallback:_original.._value\",TRUE);
  dpSet(getSystemName()+\"_sdo.RefreshTimer:_original.._value\",5);
  dpSet(getSystemName()+\"_sdo.Active:_original.._value\",TRUE);
  dpSet(getSystemName()+\"_sdo.EnableCallback:_original.._value\",TRUE);
  for(i=1;i<=21;i++)
  {
   sprintf(field,\"TextField%d\",i);   
   setValue(field,\"visible\",FALSE);
   }
  for(i=1;i<=j;i++)
    {
  	intDpeType = 0; // 3 undefined

	// GROUP MONI
	direction = \"in\";
	OPCGroup = \"sdo1\";
	sprintf( OPCItemName, \"Crate%02d_%s_SendChan%d\", crate, dparray[i], channel );
    sprintf( dpeName, \"ReadDB.channel.%s.Send\",dparray[i]);
    OPCAddress(dpeName, opcServerName, OPCGroup, OPCItemName, direction, driverNum,intDpeType,crate);
    }
// for the card 
  lvcard=channel/4;
  for(i=15;i<=16;i++)
    {
	sprintf( OPCItemName, \"Crate%02d_%s_SendCard%d\", crate, dparray[i], lvcard );
    sprintf( dpeName, \"ReadDB.card.%s.Send\",dparray[i]);
    OPCAddress(dpeName, opcServerName, OPCGroup, OPCItemName, direction, driverNum,intDpeType,crate);
	}
	  delay(5,0);
// Read the database
  dpSet(\"Info.Name:_original.._value\", \"DB: Reading database... \");
  DebugN(\"**DB: Reading database... RST=\",iRST);
  sprintf(addressCC, \"Crate%02d.Controller.CCcf_RST.Send:_original.._value\", crate); 
  dpSet(addressCC,iRST);
  sprintf(datapoint2, \"Crate%02d.Controller.CCcf_RST.Recv:_original.._value\", crate); 
  sprintf(datapoint,\"Crate%02d.Controller.CCcf_Set.Send:_original.._value\", crate);
// this delay has to be set in order to allow to have the sdo sent back to RST datapoint
// else it keeps 255 and doesn't wait for the ackowledgement to be sent
   delay(5);
  dpGet(datapoint2, checkRST);

  DebugN(\"Check CC Ackn before starting\", checkRST,i);
  dpSetWait(datapoint, 1684107116);

 
  i=0;
  checkRST=0;
  while ((i<20) && (checkRST!=255)) { 
        dpGet(datapoint2, checkRST);
        delay(2);
        DebugN(\"Check CC Ackn\", checkRST,i);
        i++;
        }  

  if(iRST<128)
  {
   for(i=6;i<=21;i++)
     {
     sprintf(field,\"TextField%d\",i);   
     setValue(field,\"visible\",TRUE);
     }
  }
  else if(iRST>=128)
  {
    for(i=6;i<=21;i++)
     {
     sprintf(field,\"TextField%d\",i);   
     setValue(field,\"visible\",FALSE);
     }
  for(i=1;i<=5;i++)
     {
     sprintf(field,\"TextField%d\",i);   
     setValue(field,\"visible\",TRUE);  
     }
  }
  dpSet(\"_sdo1.RefreshTimer:_original.._value\",0);
  dpSet(\"_sdo1.Active:_original.._value\",FALSE);
  dpSet(\"_sdo1.EnableCallback:_original.._value\",FALSE);
  dpSet(\"_sdo.RefreshTimer:_original.._value\",0);
  dpSet(\"_sdo.Active:_original.._value\",FALSE);
  dpSet(\"_sdo.EnableCallback:_original.._value\",FALSE);
   setValue(\"\",\"foreCol\",\"\");
}



OPCAddress(string dpeName, string opcServerName, string OPCGroup, string OPCItemName,
		 string direction, int driverNum, string intDpeType,int crate )
{
string reference;
int intDirection;
//Values for intDpeType:
//  UNDEFINED 480 Undefined
//  INT16 	481 16 bit integer signed
//  INT32 	482 32 bit integer signed
//  UCHAR 	483 Character unsigned
//  FLOAT32 	484 32 bit float
//  FLOAT64 	485 64 bit float
//  BOOL 		486 Bool
//  STRING 	487 String
//  UINT16 	488 16-Bit Integer unsigned
//  UINT32  	489 32-Bit Integer signed*/
  
     if(direction == \"OUT\" || direction == \"out\" || direction == \"Out\")
   { intDirection = DPATTR_ADDR_MODE_OUTPUT_SINGLE; //output for single queries
   } else if(direction == \"IN\" || direction == \"in\" || direction == \"In\")
   { intDirection = DPATTR_ADDR_MODE_INPUT_SPONT;   //input for spontaneous data
   }

	sprintf(reference,opcServerName + \"$\" + OPCGroup + \"$\" + \"Bus00.Crate%02d.\" +  OPCItemName,crate); 
    DebugN(reference);
  
   dpSetWait(dpeName + \":_distrib.._type\", DPCONFIG_DISTRIBUTION_INFO, //driver allocation
             dpeName + \":_distrib.._driver\", driverNum);               //allocated driver

   dpSetWait(dpeName + \":_address.._type\", DPCONFIG_PERIPH_ADDR_MAIN,  // general peripheral address
             dpeName + \":_address.._reference\", reference,
             dpeName + \":_address.._datatype\" , intDpeType,
             dpeName + \":_address.._mode\"     , intDirection,
             dpeName + \":_address.._drv_ident\", \"OPCCLIENT\");
             
} 



// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.Controller.CCcf_Set.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1684107116}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 525
"ChannelNb"
""
1 88 152 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
500 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
86 150 130 176
3 "s" 0 0 0 0 0 0 
E
"main()
{
 
  dpConnect(\"EP_textFieldInCB\",\"HVch.Numb:_original.._value\");

}

EP_textFieldInCB(string dp, int iNewValue)
{
string sTmp;

dpGet(dp, iNewValue);
sprintf(sTmp,\"%2d\",iNewValue);
setValue(\"\", \"text\", sTmp );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
int iNewValue,iOldValue;
dyn_errClass err;
string sTmp;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%2d\", iNewValue);

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"HVch.Numb:_online.._value\", iOldValue);
  dpSet(\"HVch.Indx:_original.._value\", iOldValue);
  dpGet(\"Crate.Numb:_online.._value\", iOldValue);
  dpSet(\"Crate.Indx:_original.._value\", iOldValue);
  dpSetWait(\"HVch.Numb:_original.._value\", iNewValue);
  DebugN(\"button left\", iOldValue, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {HVch.Numb}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

21 526
"SCrateNb"
""
1 137 121 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
501 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
135 119 179 145
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"Crate.Numb:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"Crate.Numb:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_textFieldInCB(string dp, int iNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
}

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"Crate.Numb:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"Crate.Numb:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setInvalidCB(string dp, bool boInvalid)
{
  setValue(\"\", \"color\", (boInvalid ? \"_invalid\" : \"\"));
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate.Numb}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Crate.Numb}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
int iNewValue,iOldValue;
dyn_errClass err;
string sTmp;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%02d\", iNewValue);

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"Crate.Numb:_online.._value\", iOldValue);
  dpSet(\"Crate.Indx:_original.._value\", iOldValue);
   dpGet(\"HVch.Numb:_online.._value\", iOldValue);
  dpSet(\"HVch.Indx:_original.._value\", iOldValue);
  dpSetWait(\"Crate.Numb:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {Crate.Numb}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

E

N 0 100 1 0 0 1
21 527
"sChannelNb"
""
1 138 151 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
502 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
136 149 180 175
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"HVch.Numb:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"HVch.Numb:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_textFieldInCB(string dp, int iNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
}

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"HVch.Numb:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"HVch.Numb:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setInvalidCB(string dp, bool boInvalid)
{
  setValue(\"\", \"color\", (boInvalid ? \"_invalid\" : \"\"));
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {HVch.Numb}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {HVch.Numb}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
int iNewValue,iOldValue;
dyn_errClass err;
string sTmp;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%02d\", iNewValue);

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"HVch.Numb:_online.._value\", iOldValue);
  dpSet(\"HVch.Indx:_original.._value\", iOldValue);
 dpGet(\"Crate.Numb:_online.._value\", iOldValue);
  dpSet(\"Crate.Indx:_original.._value\", iOldValue);
  dpSetWait(\"HVch.Numb:_original.._value\", iNewValue);
DebugN(\"button right\", iOldValue, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {HVch.Numb}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

E

N 0 100 1 0 0 1
14 528
"CrateNb"
""
1 87 122 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
503 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
85 120 129 146
3 "s" 0 0 0 0 0 0 
E
"main()
{
 
  dpConnect(\"EP_textFieldInCB\",\"Crate.Numb:_original.._value\");

}

EP_textFieldInCB(string dp, int iNewValue)
{
string sTmp;

dpGet(dp, iNewValue);
sprintf(sTmp,\"%2d\",iNewValue);
setValue(\"\", \"text\", sTmp );
}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

EP_textFieldOut()
{
int iNewValue,iOldValue;
dyn_errClass err;
string sTmp;

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%2d\", iNewValue);

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"Crate.Numb:_online.._value\", iOldValue);
  dpSet(\"Crate.Indx:_original.._value\", iOldValue);
 dpGet(\"HVch.Numb:_online.._value\", iOldValue);
 dpSet(\"HVch.Indx:_original.._value\", iOldValue);
  dpSetWait(\"Crate.Numb:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {HVch.Numb}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

0
LAYER, 1 
1
LANG:1 6 Layer2
0
LAYER, 2 
1
LANG:1 6 Layer3
0
LAYER, 3 
1
LANG:1 6 Layer4
0
LAYER, 4 
1
LANG:1 6 Layer5
0
LAYER, 5 
1
LANG:1 6 Layer6
0
LAYER, 6 
1
LANG:1 6 Layer7
0
LAYER, 7 
1
LANG:1 6 Layer8
0
0