V 10
1
LANG:1 8 (NoName)
PANEL,460 272 823 606 N {153,204,255} 0
EEE E E 1 -1 -1 0  50 580
"" 0 1
EE 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
6 213
"Border21"
""
1 574 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
211 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 494 40 525 419
6 212
"Border20"
""
1 544 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} 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 464 40 495 419
6 202
"Border9"
""
1 275 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
200 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 195 40 226 419
6 204
"Border10"
""
1 305 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
202 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 225 40 256 419
6 200
"Border7"
""
1 189 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} E E
 E E
198 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 165 40 195 419
6 199
"Border6"
""
1 215 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
197 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 135 40 166 419
7 86
"Ellipse41"
""
1 180 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
85 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel08.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel08.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel08.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel08.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"Green\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 180 370 10 10
6 144
"Border3"
""
1 224 484 E E E 1 E 1 E N {0,0,0} E N {255,51,51} E E
 E E
143 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 224 464 254 484
2 145
"Text2"
""
1 260 465 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
144 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 262 467 338 488
0 2 0 "s" 0 0 0 64 0 0  262 467
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 MASKED OFF
6 146
"Border4"
""
1 344 484 E E E 1 E 1 E N {0,0,0} E N {255,255,102} E E
 E E
145 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 344 464 374 484
6 0
"Border1"
""
1 45 419 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
1 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 45 40 75 419
2 147
"Text3"
""
1 384 464 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
146 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 386 466 532 482
0 2 0 "s" 0 0 0 64 0 0  386 466
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 MASKED ON
6 148
"Border5"
""
1 466 484 E E E 1 E 1 E N {0,0,0} E N {51,102,204} E E
 E E
147 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 466 464 496 484
2 149
"Text4"
""
1 506 464 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
148 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 508 466 584 482
0 2 0 "s" 0 0 0 64 0 0  508 466
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 STATUS BAD
6 17
"Border18"
""
1 184 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
18 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 104 40 135 419
6 16
"Border17"
""
1 99 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} E E
 E E
17 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 75 40 105 419
6 206
"Border12"
""
1 362 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} 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 285 40 315 419
6 207
"Border13"
""
1 392 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} 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 315 40 345 419
6 208
"Border14"
""
1 368 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} 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 344 40 374 419
6 209
"Border15"
""
1 454 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} 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 374 40 405 419
6 210
"Border16"
""
1 484 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} 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 404 40 435 419
7 152
"Ellipse50"
""
1 80 388 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
151 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1,datapoint2;


  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel01.LVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel01.LVch_Vcc.Recv:_online.._value\",crateold);
  sprintf(datapoint2,\"Crate%02d.Channel01.LVch_Vdd.Recv:_online.._value\",crateold);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);    
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}

Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1,datapoint2;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel01.LVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel01.LVch_Vcc.Recv:_online.._value\",oldcrate);
  sprintf(datapoint2,\"Crate%02d.Channel01.LVch_Vdd.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  dpDisconnect(\"EP_setBackColorCB\",datapoint2);
  sprintf(datapoint,\"Crate%02d.Channel01.LVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel01.LVch_Vcc.Recv:_online.._value\",iNewValue);
  sprintf(datapoint2,\"Crate%02d.Channel01.LVch_Vdd.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel01.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel01.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel01.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"Green\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 60 327 10 10
7 153
"Ellipse51"
""
1 100 506 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
152 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1,datapoint2;


  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel02.LVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel02.LVch_Vcc.Recv:_online.._value\",crateold);
  sprintf(datapoint2,\"Crate%02d.Channel02.LVch_Vdd.Recv:_online.._value\",crateold);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);    
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}

Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1,datapoint2;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel02.LVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel02.LVch_Vcc.Recv:_online.._value\",oldcrate);
  sprintf(datapoint2,\"Crate%02d.Channel02.LVch_Vdd.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  dpDisconnect(\"EP_setBackColorCB\",datapoint2);
  sprintf(datapoint,\"Crate%02d.Channel02.LVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel02.LVch_Vcc.Recv:_online.._value\",iNewValue);
  sprintf(datapoint2,\"Crate%02d.Channel02.LVch_Vdd.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel02.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel02.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel02.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"Green\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 60 285 10 10
7 154
"Ellipse52"
""
1 120 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
153 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1,datapoint2;


  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel03.LVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel03.LVch_Vcc.Recv:_online.._value\",crateold);
  sprintf(datapoint2,\"Crate%02d.Channel03.LVch_Vdd.Recv:_online.._value\",crateold);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);    
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}

Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1,datapoint2;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel03.LVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel03.LVch_Vcc.Recv:_online.._value\",oldcrate);
  sprintf(datapoint2,\"Crate%02d.Channel03.LVch_Vdd.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  dpDisconnect(\"EP_setBackColorCB\",datapoint2);
  sprintf(datapoint,\"Crate%02d.Channel03.LVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel03.LVch_Vcc.Recv:_online.._value\",iNewValue);
  sprintf(datapoint2,\"Crate%02d.Channel03.LVch_Vdd.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel03.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel03.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel03.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"Green\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 60 243 10 10
7 155
"Ellipse53"
""
1 120 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
154 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel04.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel04.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel04.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel04.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel04.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel04.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"Green\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 120 203 10 10
7 156
"Ellipse54"
""
1 140 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
155 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel05.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel05.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel05.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel05.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel05.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel05.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 120 160 10 10
7 157
"Ellipse55"
""
1 160 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
156 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel06.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel06.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel06.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel06.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel06.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel06.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 120 119 10 10
7 158
"Ellipse56"
""
1 180 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
157 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel07.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel07.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel07.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel07.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel07.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel07.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 120 79 10 10
7 171
"Ellipse69"
""
1 300 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
170 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel20.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel20.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel20.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel20.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel20.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel20.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 300 203 10 10
7 172
"Ellipse70"
""
1 320 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
171 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel21.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel21.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel21.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel21.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel21.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel21.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 300 160 10 10
7 173
"Ellipse71"
""
1 340 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
172 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel22.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel22.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel22.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel22.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel22.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel22.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 300 119 10 10
7 174
"Ellipse72"
""
1 360 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
173 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel23.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel23.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel23.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel23.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel23.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel23.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 300 79 10 10
7 175
"Ellipse73"
""
1 330 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
174 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel24.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel24.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel24.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel24.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel24.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel24.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 330 370 10 10
7 176
"Ellipse74"
""
1 350 389 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
175 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel25.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel25.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel25.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel25.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel25.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel25.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 330 328 10 10
7 177
"Ellipse75"
""
1 370 504 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
176 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel26.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel26.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel26.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel26.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel26.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel26.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 330 283 10 10
7 178
"Ellipse76"
""
1 390 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
177 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel27.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel27.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel27.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel27.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel27.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel27.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 330 243 10 10
7 179
"Ellipse77"
""
1 389 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
178 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel28.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel28.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel28.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel28.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel28.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel28.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 389 203 10 10
7 180
"Ellipse78"
""
1 409 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
179 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel29.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel29.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel29.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel29.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel29.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel29.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 389 160 10 10
7 181
"Ellipse79"
""
1 429 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
180 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel30.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel30.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel30.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel30.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel30.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel30.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 389 119 10 10
7 182
"Ellipse80"
""
1 449 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
181 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel31.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel31.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel31.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel31.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel31.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel31.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 389 79 10 10
7 183
"Ellipse81"
""
1 420 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
182 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel32.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel32.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel32.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel32.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel32.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel32.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 420 370 10 10
7 184
"Ellipse82"
""
1 440 389 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
183 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel33.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel33.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel33.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel33.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel33.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel33.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 420 328 10 10
7 185
"Ellipse83"
""
1 460 504 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
184 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel34.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel34.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel34.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel34.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel34.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel34.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 420 283 10 10
7 186
"Ellipse84"
""
1 480 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
185 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel35.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel35.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel35.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel35.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel35.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel35.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 420 243 10 10
7 159
"Ellipse57"
""
1 150 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
158 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel08.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel08.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel08.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel08.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel08.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel08.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 150 370 10 10
7 160
"Ellipse58"
""
1 170 389 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
159 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel09.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel09.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel09.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel09.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel09.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel09.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 150 328 10 10
7 161
"Ellipse59"
""
1 190 504 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
160 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel10.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel10.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel10.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel10.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel10.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel10.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 150 283 10 10
7 162
"Ellipse60"
""
1 210 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
161 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel11.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel11.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel11.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel11.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel11.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel11.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 150 243 10 10
7 163
"Ellipse61"
""
1 211 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
162 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel12.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel12.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel12.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel12.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel12.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel12.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 211 203 10 10
7 164
"Ellipse62"
""
1 231 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
163 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel13.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel13.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel13.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel13.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel13.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel13.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 211 160 10 10
7 165
"Ellipse63"
""
1 250 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
164 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel14.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel14.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel14.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel14.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel14.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel14.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 210 119 10 10
7 166
"Ellipse64"
""
1 271 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
165 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel15.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel15.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel15.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel15.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel15.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel15.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 211 79 10 10
7 167
"Ellipse65"
""
1 240 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
166 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel16.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel16.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel16.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel16.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel16.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel16.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 240 370 10 10
7 168
"Ellipse66"
""
1 260 389 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
167 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel17.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel17.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel17.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel17.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel17.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel17.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 240 328 10 10
7 169
"Ellipse67"
""
1 280 504 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
168 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel18.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel18.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel18.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel18.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel18.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel18.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 240 283 10 10
7 170
"Ellipse68"
""
1 300 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
169 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel19.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel19.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel19.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel19.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel19.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel19.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 240 243 10 10
7 187
"Ellipse85"
""
1 480 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
186 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel36.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel36.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel36.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel36.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel36.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel36.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 480 203 10 10
7 188
"Ellipse86"
""
1 500 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
187 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel37.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel37.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel37.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel37.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel37.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel37.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 480 160 10 10
7 189
"Ellipse87"
""
1 520 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
188 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel38.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel38.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel38.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel38.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel38.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel38.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 480 119 10 10
6 211
"Border19"
""
1 459 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} E E
 E E
209 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 435 40 465 419
6 205
"Border11"
""
1 279 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} E E
 E E
203 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 255 40 285 419
7 190
"Ellipse88"
""
1 540 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
189 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel39.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel39.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel39.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel39.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel39.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel39.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 480 79 10 10
7 191
"Ellipse89"
""
1 509 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
190 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel40.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel40.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel40.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel40.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel40.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel40.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 509 370 10 10
7 192
"Ellipse90"
""
1 529 389 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
191 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel41.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel41.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel41.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel41.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel41.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel41.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 509 328 10 10
7 193
"Ellipse91"
""
1 549 504 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
192 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel42.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel42.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel42.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel42.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel42.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel42.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 509 283 10 10
7 194
"Ellipse92"
""
1 569 724 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
193 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel43.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel43.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel43.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel43.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel43.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel43.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 509 243 10 10
6 215
"Border23"
""
1 634 474 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
213 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 554 40 585 419
6 214
"Border22"
""
1 548 446 E E E 1 E 1 E N {0,0,0} E N {102,102,102} E E
 E E
212 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 524 40 554 419
7 195
"Ellipse93"
""
1 570 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
194 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel44.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel44.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel44.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel44.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel44.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel44.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 570 203 10 10
7 196
"Ellipse94"
""
1 590 221 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
195 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel45.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel45.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel45.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel45.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel45.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel45.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 570 160 10 10
7 197
"Ellipse95"
""
1 610 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
196 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel46.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel46.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel46.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel46.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel46.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel46.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 570 119 10 10
7 198
"Ellipse96"
""
1 630 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
197 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel47.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel47.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel47.LVch_Vdd.Recv:_online.._value\",crate);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel47.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel47.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel47.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 570 79 10 10
7 216
"Ellipse48"
""
1 180 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
213 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel09.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel09.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel09.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel09.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 180 328 10 10
7 218
"Ellipse43"
""
1 180 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
214 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel10.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel10.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel10.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel10.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 180 283 10 10
7 219
"Ellipse44"
""
1 180 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
215 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel11.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel11.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel11.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel11.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 180 243 10 10
7 220
"Ellipse45"
""
1 180 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
216 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel12.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel12.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel12.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel12.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 180 203 10 10
7 221
"Ellipse46"
""
1 180 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
217 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel13.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel13.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel13.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel13.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");

  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 180 160 10 10
7 222
"Ellipse47"
""
1 180 119 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
218 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel14.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel14.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel14.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel14.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 180 119 10 10
7 223
"Ellipse97"
""
1 180 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
219 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel15.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel15.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel15.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel15.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 180 79 10 10
7 233
"Ellipse10"
""
1 90 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
228 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel01.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel01.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel01.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel01.HVchVolt.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel01.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel01.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel01.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel01.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");     
}" 0
 E 0 1 1 0 1 E U  1 E 90 328 10 10
7 234
"Ellipse11"
""
1 90 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
229 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel02.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel02.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel02.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel02.HVchVolt.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel02.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel02.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}

EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel02.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel02.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 90 283 10 10
7 235
"Ellipse12"
""
1 90 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
230 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel03.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel03.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}

Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel03.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel03.HVchVolt.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel03.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel03.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel03.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel03.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 243 10 10
7 236
"Ellipse13"
""
1 90 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
231 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel04.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel04.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel04.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel04.HVchVolt.Recv:_online.._value\",oldcrate);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel04.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel04.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
    //DebugN(\"newdp\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel04.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel04.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 203 10 10
7 237
"Ellipse14"
""
1 90 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
232 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel05.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel05.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}

Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel05.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel05.HVchVolt.Recv:_online.._value\",oldcrate);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel05.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel05.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
    //DebugN(\"newdp\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}
EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel05.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel05.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 160 10 10
7 239
"Ellipse16"
""
1 90 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
234 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel07.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel07.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel07.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel07.HVchVolt.Recv:_online.._value\",oldcrate);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel07.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel07.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
    //DebugN(\"newdp\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel07.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel07.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
   //DebugN(\"Datapoint here\",datapoint,datapoint1,crate,Volt,iNewValue); 
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 79 10 10
7 240
"Ellipse17"
""
1 271 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
235 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel16.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel16.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel16.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel16.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 271 370 10 10
7 241
"Ellipse18"
""
1 271 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
236 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel17.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel17.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel17.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel17.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 271 328 10 10
7 242
"Ellipse19"
""
1 271 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
237 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel18.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel18.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel18.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel18.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 271 283 10 10
7 243
"Ellipse20"
""
1 271 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
238 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel19.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel19.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel19.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel19.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 271 243 10 10
7 244
"Ellipse21"
""
1 271 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
239 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel20.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel20.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel20.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel20.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 271 203 10 10
7 245
"Ellipse22"
""
1 271 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
240 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel21.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel21.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel21.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel21.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 271 160 10 10
7 246
"Ellipse23"
""
1 271 119 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
241 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel22.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel22.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel22.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel22.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 271 119 10 10
7 247
"Ellipse24"
""
1 271 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
242 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel23.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel23.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel23.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel23.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 271 79 10 10
7 248
"Ellipse25"
""
1 359 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
243 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel24.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel24.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel24.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel24.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 359 370 10 10
7 249
"Ellipse26"
""
1 359 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
244 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel25.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel25.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel25.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel25.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 359 328 10 10
7 250
"Ellipse27"
""
1 359 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
245 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel26.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel26.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel26.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel26.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 359 283 10 10
7 251
"Ellipse28"
""
1 359 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
246 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel27.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel27.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel27.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel27.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 359 243 10 10
7 252
"Ellipse29"
""
1 359 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
247 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel28.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel28.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel28.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel28.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 359 203 10 10
7 253
"Ellipse30"
""
1 359 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
248 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel29.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel29.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel29.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel29.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 359 160 10 10
7 254
"Ellipse31"
""
1 359 119 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
249 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel30.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel30.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel30.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel30.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 359 119 10 10
7 255
"Ellipse32"
""
1 359 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
250 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel31.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel31.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel31.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel31.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 359 79 10 10
7 256
"Ellipse33"
""
1 451 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
251 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel32.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel32.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel32.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel32.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 370 10 10
7 257
"Ellipse34"
""
1 451 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
252 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel33.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel33.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel33.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel33.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 328 10 10
7 258
"Ellipse35"
""
1 451 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
253 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel34.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel34.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel34.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel34.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 451 283 10 10
7 259
"Ellipse36"
""
1 451 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
254 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel35.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel35.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel35.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel35.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 451 243 10 10
7 260
"Ellipse37"
""
1 451 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
255 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel36.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel36.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel36.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel36.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 203 10 10
7 261
"Ellipse38"
""
1 451 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
256 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel37.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel37.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel37.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel37.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 160 10 10
7 262
"Ellipse39"
""
1 451 119 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
257 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel38.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel38.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel38.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel38.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 119 10 10
7 263
"Ellipse40"
""
1 451 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
258 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel39.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel39.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel39.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel39.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 451 79 10 10
7 264
"Ellipse42"
""
1 540 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
259 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel40.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel40.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel40.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel40.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 370 10 10
7 265
"Ellipse98"
""
1 540 328 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
260 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel41.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel41.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel41.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel41.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 328 10 10
7 266
"Ellipse99"
""
1 540 283 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
261 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel42.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel42.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");
}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel42.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel42.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 283 10 10
7 267
"Ellipse100"
""
1 540 243 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
262 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel43.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel43.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel43.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel43.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 243 10 10
7 268
"Ellipse101"
""
1 540 203 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
263 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel44.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel44.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel44.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel44.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 203 10 10
7 269
"Ellipse102"
""
1 540 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
264 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel45.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel45.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel45.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel45.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 540 160 10 10
7 270
"Ellipse103"
""
1 540 119 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
265 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel46.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel46.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel46.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel46.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
}" 0
 E 0 1 1 0 1 E U  1 E 540 119 10 10
7 271
"Ellipse104"
""
1 540 79 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
266 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel47.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel47.HVchVolt.Recv:_online.._value\",crate);
 
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
dpConnect(\"EP_setBackColorCB\",\"Crate.Numb:_online.._value\");

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel47.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel47.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
   if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 540 79 10 10
7 273
"Ellipse1"
""
1 80 430 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
267 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"
main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1,datapoint2;


  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel00.LVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel00.LVch_Vcc.Recv:_online.._value\",crateold);
  sprintf(datapoint2,\"Crate%02d.Channel00.LVch_Vdd.Recv:_online.._value\",crateold);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);    
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1,datapoint2;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel00.LVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel00.LVch_Vcc.Recv:_online.._value\",oldcrate);
  sprintf(datapoint2,\"Crate%02d.Channel00.LVch_Vdd.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  dpDisconnect(\"EP_setBackColorCB\",datapoint2);
  sprintf(datapoint,\"Crate%02d.Channel00.LVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel00.LVch_Vcc.Recv:_online.._value\",iNewValue);
  sprintf(datapoint2,\"Crate%02d.Channel00.LVch_Vdd.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"EP_setBackColorCB\",datapoint2);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Vcc,Vdd;
int crate;
string datapoint,datapoint1,datapoint2;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel00.LVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel00.LVch_Vcc.Recv:_online.._value\",crate);
  sprintf(datapoint2,\"Crate%02d.Channel00.LVch_Vdd.Recv:_online.._value\",crate);

  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Vcc);
  dpGet(datapoint2,Vdd);
  //DebugN(\"Inewvalue\",iNewValue);
  setValue(\"\", \"backCol\", \"Blue\");
  if ((iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5))
  {
    //DebugN(\"Yellow\",(iNewValue==128||iNewValue==192)&&(Vcc<2.5&&Vdd<2.5));
    setValue(\"\", \"backCol\", \"Yellow\");
  }
  else if (iNewValue==64||iNewValue==0)
  {
    //DebugN(\"Red\",(iNewValue==64||iNewValue==0));
    setValue(\"\", \"backCol\", \"Red\");
  }
  else if ((iNewValue==192)&&(Vcc>=1&&Vdd>=2))
  {
    //DebugN(\"STD_trend_pen3\",(iNewValue==192)&&(Vcc>=1&&Vdd>=2));
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
  }
  else 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 60 369 10 10
7 274
"Ellipse2"
""
1 90 372 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
268 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel00.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel00.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel00.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel00.HVchVolt.Recv:_online.._value\",oldcrate);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel00.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel00.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}


EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel00.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel00.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 372 10 10
2 275
"Text5"
""
1 55 380 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 57 382 603 398
0 2 0 "s" 0 0 0 64 0 0  57 382
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 142 0       0                  8       8                 16     16                24     24                32     32               40      40     
2 286
"Text10"
""
1 85 708 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
280 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 57 340 603 356
0 2 0 "s" 0 0 0 64 0 0  57 340
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 142 1       1                  9        9                17     17                25     25                33     33               41      41     
2 287
"Text11"
""
1 115 996 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
281 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 57 298 603 314
0 2 0 "s" 0 0 0 64 0 0  57 298
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 2       2                 10      10              18     18                26     26                34      34              42      42     
2 289
"Text13"
""
1 145 1244 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
283 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 57 256 603 272
0 2 0 "s" 0 0 0 64 0 0  57 256
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 3       3                 11      11              19     19                27     27                35      35              43      43     
2 290
"Text14"
""
1 174 1202 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
284 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 86 214 632 230
0 2 0 "s" 0 0 0 64 0 0  86 214
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 4       4                 12      12              20      20                28     28                36     36               44     44     
2 291
"Text15"
""
1 231 1365 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
285 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 86 173 632 189
0 2 0 "s" 0 0 0 64 0 0  86 173
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 5       5                 13      13              21      21                29     29                37     37               45     45     
2 292
"Text16"
""
1 289 1486 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
286 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 86 132 632 148
0 2 0 "s" 0 0 0 64 0 0  86 132
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 6       6                 14      14              22      22                30     30                38     38               46     46     
2 293
"Text17"
""
1 289 1445 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
287 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 86 91 632 107
0 2 0 "s" 0 0 0 64 0 0  86 91
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 139 7       7                 15      15              23      23                31     31                39     39               47     47     
6 294
"Border2"
""
1 55 484 E E E 1 E 1 E N {0,0,0} E N {51,204,0} E E
 E E
288 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 55 464 85 484
2 295
"Text1"
""
1 95 464 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
289 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 97 466 133 482
0 2 0 "s" 0 0 0 64 0 0  97 466
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 ON
6 296
"Border8"
""
1 125 484 E E E 1 E 1 E N {0,0,0} E N "STD_trend_pen8" E E
 E E
290 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 125 464 155 484
2 297
"Text7"
""
1 165 464 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
291 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 167 466 223 482
0 2 0 "s" 0 0 0 64 0 0  167 466
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Ramping
2 298
"Text8"
""
1 21 423 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
292 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 23 425 608 438
0 2 0 "s" 0 0 0 64 0 0  23 425
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 150 Slots: 1       2        3       4        5        6      7        8        9      10      11     12      13     14      15      16     17      18     
2 299
"Text6"
""
1 4535 610 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
293 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 37 22 753 38
0 2 0 "s" 0 0 0 64 0 0  37 22
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 103    LV0    HV0  LV1  LV2  HV1   LV3   LV4  HV2  LV5   LV6   HV3   LV7  LV8   HV4  LV9  LV10 HV5  LV11   
7 300
"Ellipse3"
""
1 90 120 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
294 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
 EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int crate,crateold;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"Crate.Indx:_original.._value\", crateold);
  sprintf(datapoint,\"Crate%02d.Channel06.HVchStat.Recv:_online.._value\",crateold);
  sprintf(datapoint1,\"Crate%02d.Channel06.HVchVolt.Recv:_online.._value\",crateold);
  //DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);
  dpConnect(\"Connection\",\"Crate.Numb:_online.._value\");
  
}


Connection(string dp, int iNewValue)
{
string oldcrate;
string datapoint,datapoint1;
// iNewValue here is Crate number
   
  dpGet(\"Crate.Indx:_original.._value\", oldcrate);
  sprintf(datapoint,\"Crate%02d.Channel06.HVchStat.Recv:_online.._value\",oldcrate);
  sprintf(datapoint1,\"Crate%02d.Channel06.HVchVolt.Recv:_online.._value\",oldcrate);
  DebugN(\"oldCrate\",oldcrate,\"new crate\", iNewValue,\"old datapoint\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint);
  dpDisconnect(\"EP_setBackColorCB\",datapoint1);
  sprintf(datapoint,\"Crate%02d.Channel06.HVchStat.Recv:_online.._value\",iNewValue);
  sprintf(datapoint1,\"Crate%02d.Channel06.HVchVolt.Recv:_online.._value\",iNewValue);
  dpConnect(\"EP_setBackColorCB\",datapoint);
    DebugN(\"newdp\",datapoint);
  dpConnect(\"EP_setBackColorCB\",datapoint1);

}



EP_setBackColorCB(string dpSource, int iNewValue)
{

float Volt;
int crate;
string datapoint,datapoint1;

  dpGet(\"Crate.Numb:_original.._value\", crate);
  sprintf(datapoint,\"Crate%02d.Channel06.HVchStat.Recv:_online.._value\",crate);
  sprintf(datapoint1,\"Crate%02d.Channel06.HVchVolt.Recv:_online.._value\",crate);
 
  dpGet(datapoint,iNewValue);
  dpGet(datapoint1,Volt);
   //DebugN(\"Datapoint here\",datapoint,datapoint1,crate,Volt,iNewValue); 
  setValue(\"\", \"backCol\", \"Blue\");
  if (iNewValue<=3 && Volt<10)
  {
    setValue(\"\", \"backCol\", \"Yellow\");
     //DebugN(\"Yellow\",iNewValue,Volt);
 }
  else if (iNewValue & 8)
    setValue(\"\", \"backCol\", \"Red\");
  else if ((iNewValue<=3)&&Volt>10)
  {
   //DebugN(\"STD_trend_pen3\",iNewValue,Volt);
    setValue(\"\", \"backCol\", \"STD_trend_pen3\");  
    }
   else if(iNewValue&16)
    setValue(\"\",\"backCol\",\"STD_trend_pen8\");
   else if(iNewValue&192) 
    setValue(\"\", \"backCol\", \"Blue\");  
    
}" 0
 E 0 1 1 0 1 E U  1 E 90 120 10 10
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