V 10
1
LANG:1 6 CURVes
PANEL,537 250 710 669 N {204,204,204} 0
"/* Curve Name Creator
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*             CURVE NAME CREATOR AND DISTRIBUTOR FOR MODULES_PS            */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This Script creates the Full curve Name basing on Local
                   names: Name05.Name04.Name03.Name02.Name01. The Name is
                   stored in predefined Plot group and in predefined Curve
                   number DataPoint for using later by Plot panel.

   MODIF_HISTORY:  08.11.2001 - first version
                   15.02.2003 -  2-nd version, Name Versions are added
                   10.06.2003 -  3-rd version, for MoPS project
  ===================================-======================================*/

main()
{ int    plot;
  string pnam, dstr;                 /* Plot NAMe, Debug STRing             */

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.NameL1:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.NameL1:_original.._value\" , plot);
  }
  dpConnect(\"ShowPlotName\", pnam);
/*
   sprintf(dstr,\" Plot=%d; Pnam: %s\", plot, pnam);
   setValue(\"CurvDebg\",\"text\", dstr);    delay(2);                 /* Debug */
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL2:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL2:_original.._value\" , plot);
  }
  dpConnect(\"ShowPlotName\", pnam);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL3:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL3:_original.._value\" , plot);
  }
  dpConnect(\"ShowPlotName\", pnam);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL4:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL4:_original.._value\" , plot);
  }
  dpConnect(\"ShowPlotName\", pnam);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL5:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL5:_original.._value\" , plot);
  }
  dpConnect(\"ShowPlotName\", pnam);
}

 ShowPlotName(string Name, int Stus)
 {    int rack, crat, card, lvca, lvix, hvca, hvix, hivo, chan, plot, indx;
   string nam5, nam4, nam3, nam2, nam1, name, pnam, dstr;

   dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.NameL1:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.NameL1:_original.._value\" , plot);
   }
   dpGet(pnam, nam1);
/*
   sprintf(dstr,\" Lev1: %s\", nam1);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

   sprintf(name,\"Channel\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL2:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL2:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   chan = indx; if(chan < 10)
   { sprintf(nam2,\"%s0%d\", name, chan);
   } else
   { sprintf(nam2,\"%s%d\" , name, chan);
   }
/*
   sprintf(dstr,\" Lev2: %s\", nam2);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL3:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL3:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
     switch(indx)
   { case  1: lvca =  1;  lvix =  0;  hvca =  2;  hivo = 0; break;
     case  2: lvca =  1;  hvix =  0;  hvca =  2;  hivo = 1; break;
     case  3: lvca =  3;  lvix =  1;  hvca =  2;  hivo = 0; break;
     case  4: lvca =  4;  lvix =  2;  hvca =  5;  hivo = 0; break;
     case  5: lvca =  4;  hvix =  1;  hvca =  5;  hivo = 1; break;
     case  6: lvca =  6;  lvix =  3;  hvca =  5;  hivo = 0; break;
     case  7: lvca =  7;  lvix =  4;  hvca =  8;  hivo = 0; break;
     case  8: lvca =  7;  hvix =  2;  hvca =  8;  hivo = 1; break;
     case  9: lvca =  9;  lvix =  5;  hvca =  8;  hivo = 0; break;
     case 10: lvca = 10;  lvix =  6;  hvca = 11;  hivo = 0; break;
     case 11: lvca = 10;  hvix =  3;  hvca = 11;  hivo = 1; break;
     case 12: lvca = 12;  lvix =  7;  hvca = 11;  hivo = 0; break;
     case 13: lvca = 13;  lvix =  8;  hvca = 14;  hivo = 0; break;
     case 14: lvca = 13;  hvix =  4;  hvca = 14;  hivo = 1; break;
     case 15: lvca = 15;  lvix =  9;  hvca = 14;  hivo = 0; break;
     case 16: lvca = 16;  lvix = 10;  hvca = 17;  hivo = 0; break;
     case 17: lvca = 16;  hvix =  5;  hvca = 17;  hivo = 1; break;
     case 18: lvca = 18;  lvix = 11;  hvca = 17;  hivo = 0; break;
     default: lvca =  0;  lvix = -1;  hvca =  0;  hivo = 2;
                          hvix = -1;
   }
   card = indx;
     if(hivo == 0)
   { sprintf(dstr,\"%d\", lvix);          setValue(\"LVcaNumb_Plot\",\"text\",dstr);
       if(card < 10)
     { sprintf(nam3,\"Card0%d_LV\", card);
     } else
     { sprintf(nam3,\"Card%d_LV\" , card);
     }
   } else
   { sprintf(dstr,\"%d\", hvix);          setValue(\"HVcaNumb_Plot\",\"text\",dstr);
       if(card < 10)
     { sprintf(nam3,\"Card0%d_HV\", card);
     } else
     { sprintf(nam3,\"Card%d_HV\" , card);
     }
   }
/*
   sprintf(dstr,\" Lev3: %s\", nam3);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Crate\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL4:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL4:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   crat = indx; if(crat < 10)
   { sprintf(nam4,\"%s0%d\", name, crat);
   } else
   { sprintf(nam4,\"%s%d\" , name, crat);
   }
/*
   sprintf(dstr,\" Lev4: %s\", nam4);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Rack\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL5:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL5:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   rack = indx; if(rack < 10)
   { sprintf(nam5,\"%s0%d\", name, rack);
   } else
   { sprintf(nam5,\"%s%d\" , name, rack);
   }
/*
   sprintf(dstr,\" Lev5: %s\", nam5);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */
   sprintf(name,\"%s.%s.%s.%s.%s\", nam5, nam4, nam3, nam2, nam1);
/**/
   sprintf(dstr,\" General Name: %s\", name);
   setValue(\"PlotInfo\",\"backCol\",\"Green\");
   setValue(\"PlotInfo\",\"text\", dstr);   delay(1);                  /* Debug */
 }" 0
EE E E 1 -1 -1 0  30 21
"" 0 1
EE 2
"CBRef""0"
"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 302
"Border1"
""
1 0 528 E E E 1 E 1 E N {0,0,0} E N {51,102,153} E E
 E E
171 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 0 0 710 660
6 364
"Border4"
""
1 10 650 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
233 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 590 702 650
6 295
"Border2"
""
1 68 418 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
165 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 68 8 702 510
2 21
"Text7"
""
1 10 35 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen1" E E
 E E
22 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 12 37 26 52
1 2 0 "s" 0 0 0 192 0 0  12 37
 1
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 ""
1
LANG:1 2 01
2 22
"Text9"
""
1 10 65 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen2" E E
 E E
23 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 12 67 26 82
1 2 0 "s" 0 0 0 192 0 0  12 67
 1
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 ""
1
LANG:1 2 02
2 25
"Text10"
""
1 10 95 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen3" E E
 E E
26 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 12 97 26 112
1 2 0 "s" 0 0 0 192 0 0  12 97
 1
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 ""
1
LANG:1 2 03
2 28
"Text11"
""
1 10 125 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen4" E E
 E E
29 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 12 127 26 142
1 2 0 "s" 0 0 0 192 0 0  12 127
 1
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 ""
1
LANG:1 2 04
2 31
"Text12"
""
1 10 155 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen5" E E
 E E
32 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 12 157 26 172
1 2 0 "s" 0 0 0 192 0 0  12 157
 1
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 ""
1
LANG:1 2 05
2 34
"Text13"
""
1 10 185 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen6" E E
 E E
35 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 12 187 26 202
1 2 0 "s" 0 0 0 192 0 0  12 187
 1
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 ""
1
LANG:1 2 06
2 37
"Text14"
""
1 10 215 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen7" E E
 E E
38 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 12 217 26 232
1 2 0 "s" 0 0 0 192 0 0  12 217
 1
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 ""
1
LANG:1 2 07
2 40
"Text15"
""
1 10 245 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen8" E E
 E E
41 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 12 247 26 262
1 2 0 "s" 0 0 0 192 0 0  12 247
 1
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 ""
1
LANG:1 2 08
2 43
"Text16"
""
1 10 275 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen1" E E
 E E
44 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 12 277 26 292
1 2 0 "s" 0 0 0 192 0 0  12 277
 1
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 ""
1
LANG:1 2 9
2 44
"Text17"
""
1 10 305 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen2" E E
 E E
45 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 12 307 26 322
1 2 0 "s" 0 0 0 192 0 0  12 307
 1
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 ""
1
LANG:1 2 10
2 45
"Text18"
""
1 10 335 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen3" E E
 E E
46 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 12 337 26 352
1 2 0 "s" 0 0 0 192 0 0  12 337
 1
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 ""
1
LANG:1 2 11
2 46
"Text19"
""
1 10 365 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen4" E E
 E E
47 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 12 367 26 382
1 2 0 "s" 0 0 0 192 0 0  12 367
 1
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 ""
1
LANG:1 2 12
2 47
"Text20"
""
1 10 395 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen5" E E
 E E
48 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 12 397 26 412
1 2 0 "s" 0 0 0 192 0 0  12 397
 1
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 ""
1
LANG:1 2 13
2 48
"Text21"
""
1 10 425 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen6" E E
 E E
49 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 12 427 26 442
1 2 0 "s" 0 0 0 192 0 0  12 427
 1
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 ""
1
LANG:1 2 14
2 49
"Text22"
""
1 10 455 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen7" E E
 E E
50 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 12 457 26 472
1 2 0 "s" 0 0 0 192 0 0  12 457
 1
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 ""
1
LANG:1 2 15
2 50
"Text23"
""
1 10 485 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen8" E E
 E E
51 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 12 487 26 502
1 2 0 "s" 0 0 0 192 0 0  12 487
 1
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 ""
1
LANG:1 2 16
4 84
"Line1"
""
1 31 45 E E E 1 E 1 E N "STD_trend_pen1" E N {255,255,255} E E
 E E
68 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  31 45 66 45
4 85
"Line2"
""
1 32 75 E E E 1 E 1 E N "STD_trend_pen2" E N {255,255,255} E E
 E E
69 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 75 67 75
4 86
"Line3"
""
1 32 105 E E E 1 E 1 E N "STD_trend_pen3" E N {255,255,255} E E
 E E
70 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 105 67 105
4 87
"Line4"
""
1 32 135 E E E 1 E 1 E N "STD_trend_pen4" E N {255,255,255} E E
 E E
71 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 135 67 135
4 88
"Line5"
""
1 32 165 E E E 1 E 1 E N "STD_trend_pen5" E N {255,255,255} E E
 E E
72 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 165 67 165
4 89
"Line6"
""
1 32 195 E E E 1 E 1 E N "STD_trend_pen6" E N {255,255,255} E E
 E E
73 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 195 67 195
4 90
"Line7"
""
1 32 225 E E E 1 E 1 E N "STD_trend_pen7" E N {255,255,255} E E
 E E
74 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 225 67 225
4 91
"Line8"
""
1 32 255 E E E 1 E 1 E N "STD_trend_pen8" E N {255,255,255} E E
 E E
75 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 2 1 0 1 E  32 255 67 255
4 92
"Line9"
""
1 32 285 E E E 1 E 1 E N "STD_trend_pen1" E N {255,255,255} E E
 E E
76 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 285 67 285
4 93
"Line10"
""
1 32 315 E E E 1 E 1 E N "STD_trend_pen2" E N {255,255,255} E E
 E E
77 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 315 67 315
4 94
"Line11"
""
1 32 345 E E E 1 E 1 E N "STD_trend_pen3" E N {255,255,255} E E
 E E
78 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 345 67 345
4 95
"Line12"
""
1 32 375 E E E 1 E 1 E N "STD_trend_pen4" E N {255,255,255} E E
 E E
79 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 375 67 375
4 96
"Line13"
""
1 32 405 E E E 1 E 1 E N "STD_trend_pen5" E N {255,255,255} E E
 E E
80 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 405 67 405
4 97
"Line14"
""
1 32 435 E E E 1 E 1 E N "STD_trend_pen6" E N {255,255,255} E E
 E E
81 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 435 67 435
4 98
"Line15"
""
1 32 465 E E E 1 E 1 E N "STD_trend_pen7" E N {255,255,255} E E
 E E
82 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 465 67 465
4 99
"Line16"
""
1 32 495 E E E 1 E 1 E N "STD_trend_pen8" E N {255,255,255} E E
 E E
83 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 1 2 1 0 1 E  32 495 67 495
2 243
"Text6"
""
1 10 8 E E E 1 E 1 E N {255,255,0} E N {0,102,255} 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  1 E 12 10 57 26
1 2 0 "s" 0 0 0 192 0 0  12 10
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7  Curve 
2 215
"Text3"
""
1 140 10 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
87 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 142 12 390 28
0 2 0 "s" 0 0 0 192 0 0  142 12
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 31 NAME: Lev5.Lev4.Lev3.Lev2.Lev1 
2 301
"Text1"
""
1 420 10 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
171 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 422 12 494 28
0 2 0 "s" 0 0 0 192 0 0  422 12
 1
1
LANG:1 119 -microsoft windows-Courier New-bold-i-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,255,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 9 LV_card: 
2 300
"Text39"
""
1 69 10 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
170 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 71 12 111 28
0 2 0 "s" 0 0 0 192 0 0  71 12
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 5  Plot
2 335
"Text25"
""
1 952 1322 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
204 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 322 593 347 609
0 2 2 "s" 0 0 0 192 0 0  322 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 4 year
LANG:0 4 Jahr
2 336
"Text26"
""
1 1152 1322 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
205 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 372 593 408 609
0 2 2 "s" 0 0 0 192 0 0  372 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 5 month
LANG:0 5 Monat
2 337
"Text27"
""
1 1389 1322 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
206 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 429 593 450 609
0 2 2 "s" 0 0 0 192 0 0  429 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 3 day
LANG:0 3 Tag
2 338
"Text28"
""
1 1661 1322 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
207 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 479 593 504 609
0 2 2 "s" 0 0 0 192 0 0  479 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 4 hour
LANG:0 6 Stunde
2 339
"Text29"
""
1 1854 1322 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
208 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 522 593 568 609
0 2 2 "s" 0 0 0 192 0 0  522 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 7 minutes
LANG:0 6 Minute
2 341
"Text30"
""
1 809 1064 E E E 1 E 1 E N {0,0,0} E N "_3DFace" E E
 E E
210 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 577 593 607 609
0 2 0 "s" 0 0 0 192 0 0  577 593
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Start
2 349
"Text31"
""
1 424 1162 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
218 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 20 593 45 609
0 2 2 "s" 0 0 0 192 0 0  20 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 4 year
LANG:0 4 Jahr
2 350
"Text8"
""
1 574 1162 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
219 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 70 593 106 609
0 2 2 "s" 0 0 0 192 0 0  70 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 5 month
LANG:0 5 Monat
2 351
"Text32"
""
1 754 1162 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
220 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 130 593 151 609
0 2 2 "s" 0 0 0 192 0 0  130 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 3 day
LANG:0 3 Tag
2 352
"Text33"
""
1 957 1162 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
221 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 175 593 200 609
0 2 2 "s" 0 0 0 192 0 0  175 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 4 hour
LANG:0 6 Stunde
2 353
"Text34"
""
1 1103 1162 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
222 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 221 593 267 609
0 2 2 "s" 0 0 0 192 0 0  221 593
 1
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
2
LANG:1 7 minutes
LANG:0 6 Minute
2 355
"Text35"
""
1 480 959 E E E 1 E 1 E N {0,0,0} E N "_3DFace" E E
 E E
224 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 277 593 306 609
0 2 0 "s" 0 0 0 192 0 0  277 593
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Stop
2 369
"Text4"
""
1 90 552 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
235 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 92 554 132 570
0 2 0 "s" 0 0 0 192 0 0  92 554
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 5 RACK 
2 370
"Text5"
""
1 200 552 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
236 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 202 554 250 570
0 2 0 "s" 0 0 0 192 0 0  202 554
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 6 CRATE 
2 298
"CurvDebg"
""
1 884 5215 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
168 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"/* Curve Debugger
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/

main()
{ ;
}" 0
 E 0 1 1 0 1 E U  1 E 42 662 678 708
1 2 0 "s" 0 0 0 64 0 0  42 662
 1
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 ""
1
LANG:1 58                                             Curve Debugger
2 401
"Text36"
""
1 520 10 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
267 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 522 12 594 28
0 2 0 "s" 0 0 0 192 0 0  522 12
 1
1
LANG:1 119 -microsoft windows-Courier New-bold-i-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,255,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 9 HV_card: 
2 402
"Text37"
""
1 10 550 E E E 1 E 1 E N {255,255,0} E N {0,102,255} E E
 E E
268 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 12 552 57 568
1 2 0 "s" 0 0 0 192 0 0  12 552
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7  Curve 
2 403
"Text38"
""
1 314 570 E E E 1 E 1 E N {0,153,255} E N {51,102,153} E E
 E E
268 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 316 572 407 588
0 2 0 "s" 0 0 0 192 0 0  316 572
 1
1
LANG:1 121 -microsoft windows-Courier New-normal-i-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,400,255,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 13 (Slot number)
2 404
"Text40"
""
1 420 570 E E E 1 E 1 E N {0,153,255} E N {51,102,153} E E
 E E
269 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 422 572 520 588
0 2 0 "s" 0 0 0 192 0 0  422 572
 1
1
LANG:1 121 -microsoft windows-Courier New-normal-i-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,400,255,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 14 (in the Crate)
2 368
"Text2"
""
1 324 552 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
234 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 326 554 358 570
0 2 0 "s" 0 0 0 192 0 0  326 554
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 4 CARD
2 371
"Text24"
""
1 430 552 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
237 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 432 554 472 570
0 2 0 "s" 0 0 0 192 0 0  432 554
 1
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 5 CHAN 
22 224
"ComboBox5"
""
1 530 550 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
95 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
LANG:5 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 ""
528 548 624 575
19
1
LANG:1 8 LVch_Vcc
 1
1
LANG:1 8 LVps_Vcc
 0
1
LANG:1 8 LVretVcc
 0
1
LANG:1 8 LVch_Icc
 0
1
LANG:1 8 LVch_Vdd
 0
1
LANG:1 8 LVps_Vdd
 0
1
LANG:1 8 LVretVdd
 0
1
LANG:1 7 LVchIdd
 0
1
LANG:1 8 LVchVCSV
 0
1
LANG:1 8 LVchVCSI
 0
1
LANG:1 8 LVchPINV
 0
1
LANG:1 8 LVchPINI
 0
1
LANG:1 8 MOch_Tm0
 0
1
LANG:1 8 MOch_Tm1
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 LVcaTemp
 0
1
LANG:1 8 LVcaPowr
 0
1
LANG:1 4 No01
 0
E
"/* Level01 Local Name
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                     SENSOR Name_01 FOR SCT_DCS                           */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This ComboBox contains the Local Names of Lev01 for
                   SCT_DCS

   MODIF_HISTORY:  20.08.2002 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ int    name = this.selectedPos;
  int    plot;
  string pnam;

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.NameL1:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.NameL1:_original.._value\" , plot);
  }
    if(0)//name == 1)
  { dpSet(pnam,\"LVchStat\");
  } else
  {   if(name == 1)
    { dpSet(pnam,\"LVch_Vcc\");
    } else
    {   if(name == 2)
      { dpSet(pnam,\"LVps_Vcc\");
      } else
      {   if(name == 3)
        { dpSet(pnam,\"LVretVcc\");
        } else
        {   if(name == 4)
          { dpSet(pnam,\"LVch_Icc\");
          } else
          {   if(name == 5)
            { dpSet(pnam,\"LVch_Vdd\");
            } else
            {   if(name == 6)
              { dpSet(pnam,\"LVps_Vdd\");
              } else
              {   if(name == 7)
                { dpSet(pnam,\"LVretVdd\");
                } else
                {   if(name == 8)
                  { dpSet(pnam,\"LVch_Idd\");
                  } else
                  {   if(name == 9)
                    { dpSet(pnam,\"LVchVCSV\");
                    } else
                    {   if(name == 10)
                      { dpSet(pnam,\"LVchVCSI\");
                      } else
                      {   if(name == 11)
                        { dpSet(pnam,\"LVchPINV\");
                        } else
                        {   if(name == 12)
                          { dpSet(pnam,\"LVchPINI\");
                          } else
                          {   if(name == 13)
                            { dpSet(pnam,\"MOch_Tm0\");
                            } else
                            {   if(name == 14)
                              { dpSet(pnam,\"MOch_Tm1\");
                              } else
                              {   if(0)//name == 16)
                                { dpSet(pnam,\"LVchDTrp\");
                                } else
                                {   if(0)//name == 17)
                                  { dpSet(pnam,\"LVchCTrp\");
                                  } else
                                  {   if(0)//name == 18)
                                    { dpSet(pnam,\"LVchTLim\");
                                    } else
                                    {   if(0)//name == 19)
                                      { dpSet(pnam,\"LVchTTrp\");
                                      } else
                                      {   if(0)//name == 20)
                                        { dpSet(pnam,\"LVchCLKS\");
                                        } else
                                        {   if(0)//name == 21)
                                          { dpSet(pnam,\"LVchCLKR\");
                                          } else
                                          {   if(0)//name == 22)
                                            { dpSet(pnam,\"LVchVOut\");
                                            } else
                                            {   if(0)//name == 23)
                                              { dpSet(pnam,\"Reserve\");
                                              } else
                                              {   if(0)//name == 24)
                                                { dpSet(pnam,\"HVchStat\");
                                                } else
                                                {   if(name == 15)
                                                  { dpSet(pnam,\"HVchVolt\");
                                                  } else
                                                  {   if(name == 16)
                                                    { dpSet(pnam,\"HVchCurr\");
                                                    } else
                                                    {   if(name == 17)
                                                      { dpSet(pnam,\"LVcaTemp\");
                                                      } else
                                                      {   if(name == 18)
                                                        { dpSet(pnam,\"LVcaPowr\");
                                                        } else
                                                        {   if(0)//name == 29)
                                                          { dpSet(pnam,\"HVrampRt\");
                                                          } else
                                                          {   if(name == 19)
                                                            { dpSet(pnam,\"No01\");
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }  
                                  }  
                                }  
                              }
                            }
                          }  
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" 0

E
 0 0
21 225
"SpinButton1"
""
1 10 520 E E E 1 E 1 E N {255,255,0} E N {0,102,255} E E
 E E
96 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
8 518 62 545
0
E
"/* Curve Number
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                      CURVE NUMBER FOR SCT_DCS PLOT                       */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Bassiladze

   DESIGN ISSUEs:  This SpinButton selects the Curve Number of the Plot

   MODIF_HISTORY:  08.11.2001 - first version
/*===================================-======================================*/

main()
{ dyn_errClass eror;

  dpSetWait(\"SCTmops1:Curv.Numb:_original.._value\", this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 0 100 1 0 0 1
14 226
"CurvName01"
""
1 130 34 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
97 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 32 702 59
3 "s" 0 0 0 0 0 0 
E
E
E
14 227
"CurvName02"
""
1 130 64 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
98 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 62 702 89
3 "s" 0 0 0 0 0 0 
E
E
E
14 228
"CurvName03"
""
1 130 94 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
99 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 92 702 119
3 "s" 0 0 0 0 0 0 
E
E
E
14 229
"CurvName04"
""
1 130 124 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
100 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 122 702 149
3 "s" 0 0 0 0 0 0 
E
E
E
14 230
"CurvName05"
""
1 130 154 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
101 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 152 702 179
3 "s" 0 0 0 0 0 0 
E
E
E
14 231
"CurvName06"
""
1 130 184 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
102 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 182 702 209
3 "s" 0 0 0 0 0 0 
E
E
E
14 232
"CurvName07"
""
1 130 214 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
103 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 212 702 239
3 "s" 0 0 0 0 0 0 
E
E
E
14 233
"CurvName08"
""
1 130 244 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
104 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 242 702 269
3 "s" 0 0 0 0 0 0 
E
E
E
14 234
"CurvName09"
""
1 130 274 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
105 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 272 702 299
3 "s" 0 0 0 0 0 0 
E
E
E
14 235
"CurvName10"
""
1 130 304 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
106 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 302 702 329
3 "s" 0 0 0 0 0 0 
E
E
E
14 236
"CurvName11"
""
1 130 334 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
107 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 332 702 359
3 "s" 0 0 0 0 0 0 
E
E
E
14 237
"CurvName12"
""
1 130 364 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
108 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 362 702 389
3 "s" 0 0 0 0 0 0 
E
E
E
14 238
"CurvName13"
""
1 130 394 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
109 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 392 702 419
3 "s" 0 0 0 0 0 0 
E
E
E
14 239
"CurvName14"
""
1 130 424 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
110 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 422 702 449
3 "s" 0 0 0 0 0 0 
E
E
E
14 240
"CurvName15"
""
1 130 454 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
111 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 452 702 479
3 "s" 0 0 0 0 0 0 
E
E
E
14 241
"CurvName16"
""
1 130 484 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
112 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
128 482 702 509
3 "s" 0 0 0 0 0 0 
E
E
E
13 244
"GrupNameClose"
""
1 656 10 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
114 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
654 8 703 35
T 
1
LANG:1 5 Close
"/* Group Names Closer
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                   GROUP DB ADDRESSes CLOSER FOR SQL                      */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Bassiladze

   DESIGN ISSUEs:  This Button closes the Tree panel

   MODIF_HISTORY:  08.11.2001 - first version
/*===================================-======================================*/

main()
{
  PanelOff();
}" 0
 E E E
14 299
"PlotNumb"
""
1 112 10 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
169 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|-11,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
110 8 137 33
3 "s" 0 0 0 0 0 0 
E
"/* Plot Number Indicator
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
main()
{ dpConnect(\"ShowPlotNumb\",\"SCTmops1:Plot.Numb:_original.._value\");
}

 ShowPlotNumb(string Dapo, int Plot)
 { int    plot;
   string stri;
   
   delay(1);
   dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
   sprintf(stri,\"%d\", plot);
   setValue(\"PlotNumb\",\"text\", stri);
 }" 0

E
21 342
"YER1"
""
1 923 1413 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
211 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
311 612 371 639
0
E
E
E

N 1970 2035 1 2001 1 1
21 343
"MON1"
""
1 1163 1413 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
212 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
371 612 421 639
0
E
E
E

N 1 12 1 1 1 1
21 344
"DAY1"
""
1 1363 1413 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
213 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
421 612 471 639
0
E
E
E

N 1 31 1 1 1 1
21 345
"HUR1"
""
1 1653 1413 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
214 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
471 612 521 639
0
E
E
E

N 0 23 1 0 1 1
21 346
"MIN1"
""
1 1853 1413 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
215 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
521 612 571 639
0
E
E
E

N 0 59 1 0 1 1
13 347
"Button2"
""
1 1722 1380 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
216 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
572 612 611 641
T 
2
LANG:1 3 Now
LANG:0 5 Jetzt
"/* Start Date
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                       START DATE FOR GROUP HISTORY                       */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        P-O.Wallin

   DESIGN ISSUEs:  This Button contains the Script for Start Date setting

   MODIF_HISTORY:  29.07.2001 - first version
/*===================================-======================================*/

main()
{ int  tyer, tmon, tday, thur, tmin;
  time tyme;

  tyme = getCurrentTime();
  tyer = year(  tyme);                  tmon = month( tyme);
  tday = day(   tyme);                  thur = hour(  tyme);
  tmin = minute(tyme);
  setMultiValue(\"YER1\",\"text\",tyer, \"MON1\",\"text\",tmon,
                \"DAY1\",\"text\",tday, \"HUR1\",\"text\",thur, \"MIN1\",\"text\",tmin);
}" 0
 E E E
21 356
"YER2"
""
1 402 1229 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
225 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
10 612 70 639
0
E
E
E

N 1970 2035 1 2001 1 1
21 357
"MON2"
""
1 582 1229 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
226 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
70 612 120 639
0
E
E
E

N 1 12 1 1 1 1
21 358
"DAY2"
""
1 732 1229 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
227 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
120 612 170 639
0
E
E
E

N 1 31 1 1 1 1
21 359
"HUR2"
""
1 952 1229 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
228 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
170 612 220 639
0
E
E
E

N 0 23 1 0 1 1
21 360
"MIN2"
""
1 1102 1229 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
229 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
220 612 270 639
0
E
E
E

N 0 59 1 0 1 1
13 361
"Button1"
""
1 1033 1203 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
230 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
271 612 310 641
T 
2
LANG:1 3 Now
LANG:0 5 Jetzt
"/* Stop Date
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                        STOP DATE FOR GROUP HISTORY                       */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        P-O.Wallin

   DESIGN ISSUEs:  This Button contains the Script for Stop Date setting

   MODIF_HISTORY:  29.07.2001 - first version
/*===================================-======================================*/

main()
{ int  tyer, tmon, tday, thur, tmin;
  time tyme;

  tyme = getCurrentTime();
  tyer = year(  tyme);                  tmon = month( tyme);
  tday = day(   tyme);                  thur = hour(  tyme);
  tmin = minute(tyme);
  setMultiValue(\"YER2\",\"text\",tyer, \"MON2\",\"text\",tmon,
                \"DAY2\",\"text\",tday, \"HUR2\",\"text\",thur, \"MIN2\",\"text\",tmin);
}" 0
 E E E
13 362
"PlotFile"
""
1 830 1160 E E E 1 E 1 E N "_3DText" E N {204,204,102} E E
 E E
231 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
LANG:0 70 -microsoft windows-arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1
0 ""
621 612 667 639
T 
2
LANG:1 4 File
LANG:0 7 Starten
"/* Plot History
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                          PLOT HISTORY TO FILE                            */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        P-O.Wallin, S.G.Basiladze

   DESIGN ISSUEs:  This Button contains the Script for extracting Plot Data
                   from Archive and writing them to the Group History File

   MODIF_HISTORY:  29.07.2001 - first version
                   19.11.2001 -  2-nd version, the Group is added
                   27.02.2003 -  3-rd version, Name to Addr convertor added
                   10.05.2003 -  4-th version, DP & Indi names are optimized
                   10.06.2003 -  5-th version, for MoPS project
/*===================================-======================================*/

main()
{    int plot, curv, indx, int1;
     int tyer, tmon, tday, thur, tmin;
   float data;
  dyn_dyn_anytype    tarr, darr;     /* Time and Data ARRays                */
  string name, fnam, tbeg, tfin, dstr, stri;
  string dpid=\"SCTmops1:Plot.File:_original.._value\";        /* DP-elem IDen*/
  file   fout;
 
   delay(1);
   dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    switch(plot)
  { case  1: strreplace(dpid,\"Plot\",\"Plot01\");  break;
    case  2: strreplace(dpid,\"Plot\",\"Plot02\");  break;
    case  3: strreplace(dpid,\"Plot\",\"Plot03\");  break;
    case  4: strreplace(dpid,\"Plot\",\"Plot04\");  break;
    case  5: strreplace(dpid,\"Plot\",\"Plot05\");  break;
    case  6: strreplace(dpid,\"Plot\",\"Plot06\");  break;
    case  7: strreplace(dpid,\"Plot\",\"Plot07\");  break;
    case  8: strreplace(dpid,\"Plot\",\"Plot08\");  break;
    case  9: strreplace(dpid,\"Plot\",\"Plot09\");  break;
    case 10: strreplace(dpid,\"Plot\",\"Plot10\");  break;
    case 11: strreplace(dpid,\"Plot\",\"Plot11\");  break;
    case 12: strreplace(dpid,\"Plot\",\"Plot12\");  break;
    case 13: strreplace(dpid,\"Plot\",\"Plot13\");  break;
    case 14: strreplace(dpid,\"Plot\",\"Plot14\");  break;
    case 15: strreplace(dpid,\"Plot\",\"Plot15\");  break;
    case 16: strreplace(dpid,\"Plot\",\"Plot16\");  break;
    default: ;
  }
  dpGet(dpid, indx);                 /* Plot history File Name creating     */
    if(plot < 10)
  {   if(indx < 10)
     { sprintf(fnam,\"Hst_Plot0%d_0%d.dat\", plot, indx);
     } else
     { sprintf(fnam,\"Hst_Plot0%d_%d.dat\" , plot, indx);
     }
  } else
  {   if(indx < 10)
    { sprintf(fnam,\"Hst_Plot%d_0%d.dat\"  , plot, indx);
    } else
    { sprintf(fnam,\"Hst_Plot%d_%d.dat\"   , plot, indx);
    }
  }
  getMultiValue(\"YER1\",\"text\",tyer, \"MON1\",\"text\",tmon,
                \"DAY1\",\"text\",tday, \"HUR1\",\"text\",thur, \"MIN1\",\"text\",tmin);
  tbeg =  tyer+\".\"+tmon+\".\"+tday+\" \"+thur+\":\"+tmin+\":00.000\" + '\"';
  tbeg = '\"' + tbeg; 
		
  getMultiValue(\"YER2\",\"text\",tyer, \"MON2\",\"text\",tmon,
                \"DAY2\",\"text\",tday, \"HUR2\",\"text\",thur, \"MIN2\",\"text\",tmin);
  tfin =  tyer+\".\"+tmon+\".\"+tday+\" \"+thur+\":\"+tmin+\":00.000\" + '\"';
  tfin = '\"' + tfin; 

  fout = fopen(fnam, \"w+\");
  curv=1; while(curv <= 16)
  {   switch(curv)
    { case  1: strreplace(dpid,\"File\"  ,\"Name01\"); dpGet(dpid, name);  break;
      case  2: strreplace(dpid,\"Name01\",\"Name02\"); dpGet(dpid, name);  break;
      case  3: strreplace(dpid,\"Name02\",\"Name03\"); dpGet(dpid, name);  break;
      case  4: strreplace(dpid,\"Name03\",\"Name04\"); dpGet(dpid, name);  break;
      case  5: strreplace(dpid,\"Name04\",\"Name05\"); dpGet(dpid, name);  break;
      case  6: strreplace(dpid,\"Name05\",\"Name06\"); dpGet(dpid, name);  break;
      case  7: strreplace(dpid,\"Name06\",\"Name07\"); dpGet(dpid, name);  break;
      case  8: strreplace(dpid,\"Name07\",\"Name08\"); dpGet(dpid, name);  break;
      case  9: strreplace(dpid,\"Name08\",\"Name09\"); dpGet(dpid, name);  break;
      case 10: strreplace(dpid,\"Name09\",\"Name10\"); dpGet(dpid, name);  break;
      case 11: strreplace(dpid,\"Name10\",\"Name11\"); dpGet(dpid, name);  break;
      case 12: strreplace(dpid,\"Name11\",\"Name12\"); dpGet(dpid, name);  break;
      case 13: strreplace(dpid,\"Name12\",\"Name13\"); dpGet(dpid, name);  break;
      case 14: strreplace(dpid,\"Name13\",\"Name14\"); dpGet(dpid, name);  break;
      case 15: strreplace(dpid,\"Name14\",\"Name15\"); dpGet(dpid, name);  break;
      case 16: strreplace(dpid,\"Name15\",\"Name16\"); dpGet(dpid, name);  break;
      default: ;
    }
/*
    sprintf(dstr,\" Plot = %d, Index = %d, Gurv = %d\\n Name: %s\",
                   plot, indx, curv, name);
    setValue(\"CurvDebg\", \"text\", dstr);                  delay(2); /* Debug */
	dpQuery(
\"SELECT '_online.._stime' FROM '\"+name+\"' TIMERANGE(\"+tbeg+\",\"+tfin+\",1,0)\",tarr);
   	dpQuery(
\"SELECT '_online.._value' FROM '\"+name+\"' TIMERANGE(\"+tbeg+\",\"+tfin+\",1,0)\",darr);
/*
	DebugN(\"name\", name);   	DebugN(\"tbeg\", tbeg);
    DebugN(\"tfin\", tfin);       DebugN(\"tarr\", tarr);
    DebugN(\"darr\", darr);
*/        
    strreplace(name,\":_original.._value\",\"\");
    sprintf(stri,\"\\n Name: %s,\\n Time,                       Data\\n\",
                     name);
    fputs(stri, fout);
      for(int1 = 2; int1 <= dynlen(tarr); int1++)
    { tyme = tarr[int1][2];
      data = darr[int1][2];
/*
      sprintf(dstr,\" Time = %s, Data = %s\", tyme, data);
      setValue(\"CurvDebg\", \"text\", dstr);                delay(1); /* Debug */
      sprintf(stri,\" %s,    %s\\n\",tyme, data);
      fputs(stri, fout);
      fflush(fout); 
    } fflush(fout);    curv++;
  } fclose(fout);
}" 0
 E E E
21 365
"SpinButton5"
""
1 665 614 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
234 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
663 612 702 639
0
E
"/* Plot File Number
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                      NAME_INDEX OF OUT_FILE FOR SQL                      */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This SpinButton defines the Plot History File Index 

   MODIF_HISTORY:  19.11.2001 - first version
                   10.05.2003 -  2-nd version, DP & Indi names are optimized
/*===================================-======================================*/

main()
{ int     plot;
  string  dpid=\"SCTmops1:Plot.File:_original.._value\";       /* DP-elem IDen*/
  dyn_errClass eror;
  
  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);       /* Tab_2 number*/
    switch(plot)
  { case  1: strreplace(dpid,\"Plot\",\"Plot01\");  break;
    case  2: strreplace(dpid,\"Plot\",\"Plot02\");  break;
    case  3: strreplace(dpid,\"Plot\",\"Plot03\");  break;
    case  4: strreplace(dpid,\"Plot\",\"Plot04\");  break;
    case  5: strreplace(dpid,\"Plot\",\"Plot05\");  break;
    case  6: strreplace(dpid,\"Plot\",\"Plot06\");  break;
    case  7: strreplace(dpid,\"Plot\",\"Plot07\");  break;
    case  8: strreplace(dpid,\"Plot\",\"Plot08\");  break;
    case  9: strreplace(dpid,\"Plot\",\"Plot09\");  break;
    case 10: strreplace(dpid,\"Plot\",\"Plot10\");  break;
    case 11: strreplace(dpid,\"Plot\",\"Plot11\");  break;
    case 12: strreplace(dpid,\"Plot\",\"Plot12\");  break;
    case 13: strreplace(dpid,\"Plot\",\"Plot13\");  break;
    case 14: strreplace(dpid,\"Plot\",\"Plot14\");  break;
    case 15: strreplace(dpid,\"Plot\",\"Plot15\");  break;
    case 16: strreplace(dpid,\"Plot\",\"Plot16\");  break;
    default: ;
  }
  dpSetWait(dpid, this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 0 100 1 0 0 1
14 366
"PlotInfo"
""
1 70 520 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
234 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
68 518 702 545
3 "s" 0 0 0 0 0 0 
E
E
E
21 380
"MoniCratNumb"
""
1 250 550 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
246 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
248 548 292 575
0
E
"/* Level_04 Name Index
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                   NAME INDEX OF LEVEL_04 FOR SCT_DCS                     */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This SpinButton defines the Name Index of Level_04

   MODIF_HISTORY:  08.11.2001 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ int          plot;
  string       pnam;
  dyn_errClass eror;

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL4:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL4:_original.._value\" , plot);
  }
  dpSetWait(pnam, this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 1 4 1 1 0 1
21 381
"MoniRackNumb"
""
1 130 550 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
247 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
128 548 172 575
0
E
"/* Level_05 Name Index
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                   NAME INDEX OF LEVEL_01 FOR SCT_DCS                     */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This SpinButton defines the Name Index of Level_05

   MODIF_HISTORY:  08.11.2001 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ int          plot;
  string       pnam;
  dyn_errClass eror;

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL5:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL5:_original.._value\" , plot);
  }
  dpSetWait(pnam, this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 1 4 1 1 0 1
13 382
"ChanMoni"
""
1 640 550 E E E 1 E 1 E N "_3DText" E N {204,204,102} E E
 E E
248 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
638 548 702 575
T 
1
LANG:1 7 Connect
"/* Connect Curve by Click
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                      MANUAL CURVE SELECTOR BY CLICK                      */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This Button is starting of Manual Selector
                   based on DCS_Name
                   
   MODIF_HISTORY:  04.02.2002 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/


main()
{ ConnectPlotPara();
}

 ConnectPlotPara()
 {    int plot, curv, stat;
      int rack, crat, card, lvca, lvix, hvca, hvix, hivo, chan, indx, conn;
   string nam5, nam4, nam3, nam2, nam1, name, pnam, old_para, new_para;
   string dpid, indi, dstr;          /* DP-elem IDen                        */

//   delay(1);
   dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.NameL1:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.NameL1:_original.._value\" , plot);
   }
   dpGet(pnam, nam1);
/*
   sprintf(dstr,\" Lev1: %s\", nam1);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

   sprintf(name,\"Channel\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL2:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL2:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   chan = indx - 1; if(chan >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(chan < 10)
   { sprintf(nam2,\"%s0%d\", name, chan);
   } else
   { sprintf(nam2,\"%s%d\" , name, chan);
   }
/*
   sprintf(dstr,\" Lev2: %s\", nam2);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL3:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL3:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
     switch(indx)
   { case  1: lvca =  1;  lvix =  0;  hvca =  2;  hivo = 0; break;
     case  2: lvca =  1;  hvix =  0;  hvca =  2;  hivo = 1; break;
     case  3: lvca =  3;  lvix =  1;  hvca =  2;  hivo = 0; break;
     case  4: lvca =  4;  lvix =  2;  hvca =  5;  hivo = 0; break;
     case  5: lvca =  4;  hvix =  1;  hvca =  5;  hivo = 1; break;
     case  6: lvca =  6;  lvix =  3;  hvca =  5;  hivo = 0; break;
     case  7: lvca =  7;  lvix =  4;  hvca =  8;  hivo = 0; break;
     case  8: lvca =  7;  hvix =  2;  hvca =  8;  hivo = 1; break;
     case  9: lvca =  9;  lvix =  5;  hvca =  8;  hivo = 0; break;
     case 10: lvca = 10;  lvix =  6;  hvca = 11;  hivo = 0; break;
     case 11: lvca = 10;  hvix =  3;  hvca = 11;  hivo = 1; break;
     case 12: lvca = 12;  lvix =  7;  hvca = 11;  hivo = 0; break;
     case 13: lvca = 13;  lvix =  8;  hvca = 14;  hivo = 0; break;
     case 14: lvca = 13;  hvix =  4;  hvca = 14;  hivo = 1; break;
     case 15: lvca = 15;  lvix =  9;  hvca = 14;  hivo = 0; break;
     case 16: lvca = 16;  lvix = 10;  hvca = 17;  hivo = 0; break;
     case 17: lvca = 16;  hvix =  5;  hvca = 17;  hivo = 1; break;
     case 18: lvca = 18;  lvix = 11;  hvca = 17;  hivo = 0; break;
     default: lvca =  0;  lvix = -1;  hvca =  0;  hivo = 2;
                          hvix = -1;
   }
     if(hivo == 0)
   { card = lvix;
       if(card < 10)
     { sprintf(nam3,\"LV_card0%d\", card);
     } else
     { sprintf(nam3,\"LV_card%d\" , card);
     }
   } else
   { card = hvix;
       if(card < 10)
     { sprintf(nam3,\"HV_card0%d\", card);
     } else
     { sprintf(nam3,\"HV_card%d\" , card);
     }
   }
     if(card >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
/*
   sprintf(dstr,\" Lev3: %s\", nam3);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Crate\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL4:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL4:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   crat = indx - 1; if(crat >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(crat < 10)
   { sprintf(nam4,\"%s0%d\", name, crat);
   } else
   { sprintf(nam4,\"%s%d\" , name, crat);
   }
/*
   sprintf(dstr,\" Lev4: %s\", nam4);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Rack\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL5:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL5:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   rack = indx - 1; if(rack >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(rack < 10)
   { sprintf(nam5,\"%s0%d\", name, rack);
   } else
   { sprintf(nam5,\"%s%d\" , name, rack);
   }
/*
   sprintf(dstr,\" Lev5: %s\", nam5);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Crate\");
   crat = (rack * 4) + crat;
     if(crat < 10)
   { sprintf(nam4,\"%s0%d\", name, crat);
   } else
   { sprintf(nam4,\"%s%d\" , name, crat);
   }
   sprintf(name,\"%s.%s.%s\", nam4, nam2, nam1);
/**/
   sprintf(dstr,\" Para_DP_Name: %s; Plot0%d, Conn=%d\", name, plot, conn);
   setValue(\"PlotInfo\",\"backCol\",\"Green\");
   setValue(\"PlotInfo\",\"text\", dstr);     delay(1);                /* Debug */

   dpGet(\"SCTmops1:Curv.Numb:_original.._value\", curv);
     if(curv < 10)
   {   if(plot < 10)
     { sprintf(pnam,\"SCTmops1:Plot0%d.Name0%d:_original.._value\",plot,curv);
     } else
     { sprintf(pnam,\"SCTmops1:Plot%d.Name0%d:_original.._value\" ,plot,curv);
     }
     sprintf(indi,\"PlotGet_Name0%d\", curv);
   } else
   {   if(plot < 10)
     { sprintf(pnam,\"SCTmops1:Plot0%d.Name%d:_original.._value\" ,plot,curv);
     } else
     { sprintf(pnam,\"SCTmops1:Plot%d.Name%d:_original.._value\"  ,plot,curv);
     }
     sprintf(indi,\"PlotGet_Name%d\", curv);
   }
     if(conn > 0)                    /* If Data_Recv                        */
   { dpGet(pnam, old_para);
     dpDisconnect(indi, old_para);
   }
   sprintf(new_para,\"SCTmops1:%s.Recv:_original.._value\", name);
   dpSet(pnam, new_para);
   dpConnect(indi, new_para);

   sprintf(dpid,\"SCTmops1:Plot0%d.NameXX:_original.._value\", plot);
     switch(curv)
   { case  1: strreplace(dpid,\"NameXX\",\"Name01\"); break;
     case  2: strreplace(dpid,\"NameXX\",\"Name02\"); break;
     case  3: strreplace(dpid,\"NameXX\",\"Name03\"); break;
     case  4: strreplace(dpid,\"NameXX\",\"Name04\"); break;
     case  5: strreplace(dpid,\"NameXX\",\"Name05\"); break;
     case  6: strreplace(dpid,\"NameXX\",\"Name06\"); break;
     case  7: strreplace(dpid,\"NameXX\",\"Name07\"); break;
     case  8: strreplace(dpid,\"NameXX\",\"Name08\"); break;
     case  9: strreplace(dpid,\"NameXX\",\"Name09\"); break;
     case 10: strreplace(dpid,\"NameXX\",\"Name10\"); break;
     case 11: strreplace(dpid,\"NameXX\",\"Name11\"); break;
     case 12: strreplace(dpid,\"NameXX\",\"Name12\"); break;
     case 13: strreplace(dpid,\"NameXX\",\"Name13\"); break;
     case 14: strreplace(dpid,\"NameXX\",\"Name14\"); break;
     case 15: strreplace(dpid,\"NameXX\",\"Name15\"); break;
     case 16: strreplace(dpid,\"NameXX\",\"Name16\"); break;
     default: ;
   }
   dpGet(dpid, name);
   strreplace(name,\"SCTmops1:\",\"\");
   strreplace(name,\":_original.._value\",\"\");
     switch(curv)
   { case  1: setValue(\"CurvName01\", \"text\", name);  break;
     case  2: setValue(\"CurvName02\", \"text\", name);  break;
     case  3: setValue(\"CurvName03\", \"text\", name);  break;
     case  4: setValue(\"CurvName04\", \"text\", name);  break;
     case  5: setValue(\"CurvName05\", \"text\", name);  break;
     case  6: setValue(\"CurvName06\", \"text\", name);  break;
     case  7: setValue(\"CurvName07\", \"text\", name);  break;
     case  8: setValue(\"CurvName08\", \"text\", name);  break;
     case  9: setValue(\"CurvName09\", \"text\", name);  break;
     case 10: setValue(\"CurvName10\", \"text\", name);  break;
     case 11: setValue(\"CurvName11\", \"text\", name);  break;
     case 12: setValue(\"CurvName12\", \"text\", name);  break;
     case 13: setValue(\"CurvName13\", \"text\", name);  break;
     case 14: setValue(\"CurvName14\", \"text\", name);  break;
     case 15: setValue(\"CurvName15\", \"text\", name);  break;
     case 16: setValue(\"CurvName16\", \"text\", name);  break;
     default: ;
   }
   dpGet(\"SCTmops1:Plot.Stat:_original.._value\", stat);  /* Reconnection    */
     if(stat > 0x4)
   { dpSet(\"SCTmops1:Plot.Stat:_original.._value\", 0x4);
   } else
   { dpSet(\"SCTmops1:Plot.Stat:_original.._value\", 0x8);
   }
 }

 PlotGet_Name01(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name01\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name01\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name01\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name01\",\"text\", stri);
 }

 PlotGet_Name02(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name02\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name02\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name02\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name02\",\"text\", stri);
 }

 PlotGet_Name03(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name03\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name03\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name03\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name03\",\"text\", stri);
 }

 PlotGet_Name04(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name04\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name04\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name04\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name04\",\"text\", stri);
 }

 PlotGet_Name05(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name05\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name05\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name05\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name05\",\"text\", stri);
 }

 PlotGet_Name06(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name06\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name06\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name06\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name06\",\"text\", stri);
 }

 PlotGet_Name07(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name07\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name07\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name07\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name07\",\"text\", stri);
 }

 PlotGet_Name08(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name08\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name08\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name08\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name08\",\"text\", stri);
 }

 PlotGet_Name09(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name09\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name09\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name09\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name09\",\"text\", stri);
 }

 PlotGet_Name10(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name10\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name10\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name10\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name10\",\"text\", stri);
 }

 PlotGet_Name11(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name11\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name11\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name11\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name11\",\"text\", stri);
 }

 PlotGet_Name12(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name12\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name12\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name12\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name12\",\"text\", stri);
 }

 PlotGet_Name13(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name13\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name13\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name13\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name13\",\"text\", stri);
 }

 PlotGet_Name14(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name14\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name14\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name14\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name14\",\"text\", stri);
 }

 PlotGet_Name15(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name15\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name15\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name15\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name15\",\"text\", stri);
 }

 PlotGet_Name16(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name16\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name16\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name16\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name16\",\"text\", stri);
 }" 0
 E E "/* Connect Curve by Name
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                       MANUAL CURVE SELECTOR BY NAME                      */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This Button is starting of Manual Selector
                   based on DCS_Name
                   
   MODIF_HISTORY:  04.02.2002 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ ConnectPlotPara();
}

 ConnectPlotPara()
 {    int plot, curv, stat;
      int rack, crat, card, lvca, lvix, hvca, hvix, hivo, chan, indx, conn;
    float data;
   string nam5, nam4, nam3, nam2, nam1, name, pnam, old_para, new_para;
   string dpid, indi, dstr, str1, str2;   /* DP-elem IDen                   */

   delay(1);
   dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.NameL1:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.NameL1:_original.._value\" , plot);
   }
   dpGet(pnam, nam1);
/*
   sprintf(dstr,\" Lev1: %s\", nam1);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

   sprintf(name,\"Channel\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL2:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL2:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   chan = indx - 1; if(chan >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(chan < 10)
   { sprintf(nam2,\"%s0%d\", name, chan);
   } else
   { sprintf(nam2,\"%s%d\" , name, chan);
   }
/*
   sprintf(dstr,\" Lev2: %s\", nam2);
   setValue(\"PlotInfo\",\"text\", dstr);    delay(2);                 /* Debug */

     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL3:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL3:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
     switch(indx)
   { case  1: lvca =  1;  lvix =  0;  hvca =  2;  hivo = 0; break;
     case  2: lvca =  1;  hvix =  0;  hvca =  2;  hivo = 1; break;
     case  3: lvca =  3;  lvix =  1;  hvca =  2;  hivo = 0; break;
     case  4: lvca =  4;  lvix =  2;  hvca =  5;  hivo = 0; break;
     case  5: lvca =  4;  hvix =  1;  hvca =  5;  hivo = 1; break;
     case  6: lvca =  6;  lvix =  3;  hvca =  5;  hivo = 0; break;
     case  7: lvca =  7;  lvix =  4;  hvca =  8;  hivo = 0; break;
     case  8: lvca =  7;  hvix =  2;  hvca =  8;  hivo = 1; break;
     case  9: lvca =  9;  lvix =  5;  hvca =  8;  hivo = 0; break;
     case 10: lvca = 10;  lvix =  6;  hvca = 11;  hivo = 0; break;
     case 11: lvca = 10;  hvix =  3;  hvca = 11;  hivo = 1; break;
     case 12: lvca = 12;  lvix =  7;  hvca = 11;  hivo = 0; break;
     case 13: lvca = 13;  lvix =  8;  hvca = 14;  hivo = 0; break;
     case 14: lvca = 13;  hvix =  4;  hvca = 14;  hivo = 1; break;
     case 15: lvca = 15;  lvix =  9;  hvca = 14;  hivo = 0; break;
     case 16: lvca = 16;  lvix = 10;  hvca = 17;  hivo = 0; break;
     case 17: lvca = 16;  hvix =  5;  hvca = 17;  hivo = 1; break;
     case 18: lvca = 18;  lvix = 11;  hvca = 17;  hivo = 0; break;
     default: lvca =  0;  lvix = -1;  hvca =  0;  hivo = 2;
                          hvix = -1;
   }
     if(hivo == 0)
   { card = lvix;
       if(card < 10)
     { sprintf(nam3,\"LV_card0%d\", card);
     } else
     { sprintf(nam3,\"LV_card%d\" , card);
     }
   } else
   { card = hvix;
       if(card < 10)
     { sprintf(nam3,\"HV_card0%d\", card);
     } else
     { sprintf(nam3,\"HV_card%d\" , card);
     }
   }
     if(card >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
/*
   sprintf(dstr,\" Lev3: %s\", nam3);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Crate\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL4:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL4:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   crat = indx - 1; if(crat >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(crat < 10)
   { sprintf(nam4,\"%s0%d\", name, crat);
   } else
   { sprintf(nam4,\"%s%d\" , name, crat);
   }
/*
   sprintf(dstr,\" Lev4: %s\", nam4);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Rack\");
     if(plot < 10)
   { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL5:_original.._value\", plot);
   } else
   { sprintf(pnam,\"SCTmops1:Plot%d.IndxL5:_original.._value\" , plot);
   }
   dpGet(pnam, indx);
   rack = indx - 1; if(rack >= 0)
   { conn = 1;
   } else
   { conn = 0;
   }
     if(rack < 10)
   { sprintf(nam5,\"%s0%d\", name, rack);
   } else
   { sprintf(nam5,\"%s%d\" , name, rack);
   }
/*
   sprintf(dstr,\" Lev5: %s\", nam5);
   setValue(\"PlotInfo\",\"text\", dstr);     delay(2);                /* Debug */

   sprintf(name,\"Crate\");
   crat = (rack * 4) + crat;
     if(crat < 10)
   { sprintf(nam4,\"%s0%d\", name, crat);
   } else
   { sprintf(nam4,\"%s%d\" , name, crat);
   }
   sprintf(name,\"%s.%s.%s\", nam4, nam2, nam1);
/**/
   sprintf(dstr,\" Para_DP_Name: %s; Plot0%d, Conn=%d\", name, plot, conn);
   setValue(\"PlotInfo\",\"backCol\",\"Green\");
   setValue(\"PlotInfo\",\"text\", dstr);     delay(1);                /* Debug */

   curv=1; while(curv < 17)
   {   if(curv < 10)
     {   if(plot < 10)
       { sprintf(pnam,\"SCTmops1:Plot0%d.Name0%d:_original.._value\",plot,curv);
       } else
       { sprintf(pnam,\"SCTmops1:Plot%d.Name0%d:_original.._value\" ,plot,curv);
       }
       sprintf(indi,\"PlotGet_Name0%d\", curv);
       sprintf(str1,\"CurvName0%d\", curv);
     } else
     {   if(plot < 10)
       { sprintf(pnam,\"SCTmops1:Plot0%d.Name%d:_original.._value\" ,plot,curv);
       } else
       { sprintf(pnam,\"SCTmops1:Plot%d.Name%d:_original.._value\"  ,plot,curv);
       }
       sprintf(indi,\"PlotGet_Name%d\", curv);
       sprintf(str1,\"CurvName%d\", curv);
     }
       if(conn > 0)                  /* If Data_Recv                        */
     { dpGet(pnam, old_para);
       dpConnect(indi, old_para);
       sprintf(str2, old_para);
       strreplace(str2,\"SCTmops1:\",\"\");
       strreplace(str2,\":_original.._value\",\"\");
       setValue(str1, \"text\", str2);
     } else
     { sprintf(new_para,\"SCTmops1:%s.Recv:_original.._value\", name);
       dpSet(pnam, new_para);
       dpConnect(indi, new_para);
     }
     sprintf(dpid,\"SCTmops1:Plot0%d.NameXX:_original.._value\", plot);
//     dpGet(\"SCTmops1:Curv.Numb:_original.._value\", curv);
       switch(curv)
     { case  1: strreplace(dpid,\"NameXX\",\"Name01\"); break;
       case  2: strreplace(dpid,\"NameXX\",\"Name02\"); break;
       case  3: strreplace(dpid,\"NameXX\",\"Name03\"); break;
       case  4: strreplace(dpid,\"NameXX\",\"Name04\"); break;
       case  5: strreplace(dpid,\"NameXX\",\"Name05\"); break;
       case  6: strreplace(dpid,\"NameXX\",\"Name06\"); break;
       case  7: strreplace(dpid,\"NameXX\",\"Name07\"); break;
       case  8: strreplace(dpid,\"NameXX\",\"Name08\"); break;
       case  9: strreplace(dpid,\"NameXX\",\"Name09\"); break;
       case 10: strreplace(dpid,\"NameXX\",\"Name10\"); break;
       case 11: strreplace(dpid,\"NameXX\",\"Name11\"); break;
       case 12: strreplace(dpid,\"NameXX\",\"Name12\"); break;
       case 13: strreplace(dpid,\"NameXX\",\"Name13\"); break;
       case 14: strreplace(dpid,\"NameXX\",\"Name14\"); break;
       case 15: strreplace(dpid,\"NameXX\",\"Name15\"); break;
       case 16: strreplace(dpid,\"NameXX\",\"Name16\"); break;
       default: ;
     }
     dpGet(dpid, name);
     strreplace(name,\"SCTmops1:\",\"\");
     strreplace(name,\":_original.._value\",\"\");
       switch(curv)
     { case  1: setValue(\"CurvName00\", \"text\", name);  break;
       case  2: setValue(\"CurvName01\", \"text\", name);  break;
       case  3: setValue(\"CurvName02\", \"text\", name);  break;
       case  4: setValue(\"CurvName03\", \"text\", name);  break;
       case  5: setValue(\"CurvName04\", \"text\", name);  break;
       case  6: setValue(\"CurvName05\", \"text\", name);  break;
       case  7: setValue(\"CurvName06\", \"text\", name);  break;
       case  8: setValue(\"CurvName07\", \"text\", name);  break;
       case  9: setValue(\"CurvName08\", \"text\", name);  break;
       case 10: setValue(\"CurvName09\", \"text\", name);  break;
       case 11: setValue(\"CurvName10\", \"text\", name);  break;
       case 12: setValue(\"CurvName11\", \"text\", name);  break;
       case 13: setValue(\"CurvName12\", \"text\", name);  break;
       case 14: setValue(\"CurvName13\", \"text\", name);  break;
       case 15: setValue(\"CurvName14\", \"text\", name);  break;
       case 16: setValue(\"CurvName15\", \"text\", name);  break;
       default: ;
     } curv++;
   }
 }

 PlotGet_Name01(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name01\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name01\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name01\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name01\",\"text\", stri);
 }

 PlotGet_Name02(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name02\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name02\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name02\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name02\",\"text\", stri);
 }

 PlotGet_Name03(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name03\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name03\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name03\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name03\",\"text\", stri);
 }

 PlotGet_Name04(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name04\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name04\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name04\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name04\",\"text\", stri);
 }

 PlotGet_Name05(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name05\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name05\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name05\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name05\",\"text\", stri);
 }

 PlotGet_Name06(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name06\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name06\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name06\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name06\",\"text\", stri);
 }

 PlotGet_Name07(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name07\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name07\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name07\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name07\",\"text\", stri);
 }

 PlotGet_Name08(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name08\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name08\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name08\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name08\",\"text\", stri);
 }

 PlotGet_Name09(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name09\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name09\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name09\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name09\",\"text\", stri);
 }

 PlotGet_Name10(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name10\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name10\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name10\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name10\",\"text\", stri);
 }

 PlotGet_Name11(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name11\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name11\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name11\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name11\",\"text\", stri);
 }

 PlotGet_Name12(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name12\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name12\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name12\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name12\",\"text\", stri);
 }

 PlotGet_Name13(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name13\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name13\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name13\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name13\",\"text\", stri);
 }

 PlotGet_Name14(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name14\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name14\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name14\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name14\",\"text\", stri);
 }

 PlotGet_Name15(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name15\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name15\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name15\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name15\",\"text\", stri);
 }

 PlotGet_Name16(string Dapo, float Data)
 { int    stus;
   string stri;
 
   sprintf(stri,\"%s\", Dapo);         /* Indicator colour                    */
   strreplace(stri,\":_original.._value\",\":_alert_hdl.._act_range\");
   strreplace(stri,\":original..value\"  ,\":_alert_hdl.._act_range\");
   dpGet(stri, stus);
   setValue(\"PlotDataGet_Name16\",\"backCol\",\"Green\");
     if((stus == 2) || (stus == 4))
   { setValue(\"PlotDataGet_Name16\",\"backCol\",\"Yellow\");
   }
     if((stus == 1) || (stus == 5))
   { setValue(\"PlotDataGet_Name16\",\"backCol\",\"Red\");
   }
   sprintf(stri,\"%3.1f\", Data);
   setValue(\"PlotDataGet_Name16\",\"text\", stri);
 }" 0

14 383
"PlotDataGet_Name01"
""
1 75 35 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
249 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 33 127 60
3 "s" 0 0 0 0 0 0 
E
E
E
14 384
"PlotDataGet_Name02"
""
1 75 65 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
250 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 63 127 90
3 "s" 0 0 0 0 0 0 
E
E
E
14 385
"PlotDataGet_Name03"
""
1 75 95 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
251 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 93 127 120
3 "s" 0 0 0 0 0 0 
E
E
E
14 386
"PlotDataGet_Name04"
""
1 75 125 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
252 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 123 127 150
3 "s" 0 0 0 0 0 0 
E
E
E
14 387
"PlotDataGet_Name05"
""
1 75 155 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
253 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 153 127 180
3 "s" 0 0 0 0 0 0 
E
E
E
14 388
"PlotDataGet_Name06"
""
1 75 185 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
254 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 183 127 210
3 "s" 0 0 0 0 0 0 
E
E
E
14 389
"PlotDataGet_Name07"
""
1 75 215 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
255 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 213 127 240
3 "s" 0 0 0 0 0 0 
E
E
E
14 390
"PlotDataGet_Name08"
""
1 75 245 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
256 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 243 127 270
3 "s" 0 0 0 0 0 0 
E
E
E
14 391
"PlotDataGet_Name09"
""
1 75 275 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
257 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 273 127 300
3 "s" 0 0 0 0 0 0 
E
E
E
14 392
"PlotDataGet_Name10"
""
1 75 305 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
258 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 303 127 330
3 "s" 0 0 0 0 0 0 
E
E
E
14 393
"PlotDataGet_Name11"
""
1 75 335 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
259 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 333 127 360
3 "s" 0 0 0 0 0 0 
E
E
E
14 394
"PlotDataGet_Name12"
""
1 75 365 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
260 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 363 127 390
3 "s" 0 0 0 0 0 0 
E
E
E
14 395
"PlotDataGet_Name13"
""
1 75 395 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
261 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 393 127 420
3 "s" 0 0 0 0 0 0 
E
E
E
14 396
"PlotDataGet_Name14"
""
1 75 425 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
262 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 423 127 450
3 "s" 0 0 0 0 0 0 
E
E
E
14 397
"PlotDataGet_Name15"
""
1 75 455 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
263 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 453 127 480
3 "s" 0 0 0 0 0 0 
E
E
E
14 398
"PlotDataGet_Name16"
""
1 75 485 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
264 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
73 483 127 510
3 "s" 0 0 0 0 0 0 
E
E
E
14 399
"LVcaNumb_Plot"
""
1 490 10 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
265 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|-11,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
488 8 515 33
3 "s" 0 0 0 0 0 0 
E
E
E
14 400
"HVcaNumb_Plot"
""
1 590 10 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
266 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|-11,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
588 8 615 33
3 "s" 0 0 0 0 0 0 
E
E
E
21 379
"MoniCardNumb"
""
1 360 550 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
245 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
358 548 402 575
0
E
"/* Level_03 Name Index
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                   NAME INDEX OF LEVEL_03 FOR SCT_DCS                     */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This SpinButton defines the Name Index of Level_03

   MODIF_HISTORY:  08.11.2001 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ int          plot;
  string       pnam;
  dyn_errClass eror;

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL3:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL3:_original.._value\" , plot);
  }
  dpSetWait(pnam, this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 1 18 1 1 0 1
21 378
"MoniChanNumb"
""
1 470 550 E E E 1 E 1 E N "_WindowText" E N {255,255,255} E E
 E E
244 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
468 548 512 575
0
E
"/* Level_02 Name Index
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                   NAME INDEX OF LEVEL_02 FOR SCT_DCS                     */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        S.G.Basiladze

   DESIGN ISSUEs:  This SpinButton defines the Name Index of Level_02

   MODIF_HISTORY:  08.11.2001 - first version
                   10.06.2003 -  2-nd version, for MoPS project
/*===================================-======================================*/

main()
{ int          plot;
  string       pnam, dstr;
  dyn_errClass eror;

  delay(1);
  dpGet(\"SCTmops1:Plot.Numb:_original.._value\", plot);
    if(plot < 10)
  { sprintf(pnam,\"SCTmops1:Plot0%d.IndxL2:_original.._value\", plot);
  } else
  { sprintf(pnam,\"SCTmops1:Plot%d.IndxL2:_original.._value\" , plot);
  }
/*
   sprintf(dstr,\" Plot=%d; IndxL2: %s\", plot, pnam);
   setValue(\"CurvDebg\",\"text\", dstr);    delay(2);                 /* Debug */
  dpSetWait(pnam, this.text);
  eror = getLastError();
    if(dynlen(eror))
  { errorDialog(eror);
  }
}" 0

E

N 1 48 1 1 0 1
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