V 10
1
LANG:1 16 Cable test panel
PANEL,340 122 448 272 N "_3DFace" 0
"main()
{
CrateText.text=1;
StartText.text=0;
}" 0
EE E E 1 -1 -1 0  90 60
"" 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
2 6
"Text1"
""
1 80 20 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
 E E
6 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 82 22 158 38
0 2 0 "s" 0 0 0 64 0 0  82 22
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Crate
2 7
"Text2"
""
1 180 20 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
 E E
7 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 182 22 258 38
0 2 0 "s" 0 0 0 64 0 0  182 22
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Start
2 8
"Text3"
""
1 280 20 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
 E E
8 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 282 22 358 38
0 2 0 "s" 0 0 0 64 0 0  282 22
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Stop
7 10
"LEDR0"
""
1 70 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
9 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 70 190 10 10
7 11
"LEDR1"
""
1 128 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
10 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 128 190 10 10
7 12
"LEDR2"
""
1 186 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
11 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 186 190 10 10
7 13
"LEDR3"
""
1 244 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
12 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 244 190 10 10
7 14
"LEDR4"
""
1 302 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
13 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 302 190 10 10
7 15
"LEDR5"
""
1 360 190 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
14 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 360 190 10 10
7 16
"LEDS0"
""
1 70 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
15 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 70 220 10 10
7 17
"LEDS1"
""
1 128 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
16 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 128 220 10 10
7 18
"LEDS2"
""
1 186 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} 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 186 220 10 10
7 19
"LEDS3"
""
1 244 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} 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 244 220 10 10
7 20
"LEDS4"
""
1 302 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
19 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 302 220 10 10
7 21
"LEDS5"
""
1 360 220 E E E 1 E 1 E N "_WindowText" E N {0,0,0} E E
 E E
20 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 360 220 10 10
2 24
"Text5"
""
1 10 210 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
 E E
23 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 12 212 48 228
0 2 0 "s" 0 0 0 64 0 0  12 212
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Select
2 25
"Text6"
""
1 10 180 E E E 1 E 1 E N "_WindowText" E N "_Transparent" E E
 E E
24 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 12 182 48 198
0 2 0 "s" 0 0 0 64 0 0  12 182
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Reset
13 0
"Button1"
""
1 90 80 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
88 78 212 122
T 
1
LANG:1 15 set select to 1
"main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int crate,channel,lv,start,stop,i;
string datapoint,datapoint1;



  start=StartText.text;
  stop=StartText.text+5;
  crate=CrateText.text;
  for (i=start;i<=stop;i++) 
  {
   lv = i | (( 3 & 0x00ff )<<8);
   sprintf(datapoint,\"Crate%02d.Channel%02d.LVchCLKS.Send:_original.._value\",crate, i);
   sprintf(datapoint1,\"Crate%02d.Controller.CCch_Set.Send:_original.._value\",crate);

  dpSetWait(datapoint,1.);
  delay(0,100);

  dpSet(datapoint1,lv);
 }
  LEDS0.backCol=\"{255,0,0}\";
  LEDS1.backCol=\"{255,0,0}\";
  LEDS2.backCol=\"{255,0,0}\";
  LEDS3.backCol=\"{255,0,0}\";
  LEDS4.backCol=\"{255,0,0}\";
  LEDS5.backCol=\"{255,0,0}\";
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}" 0
 E E E
13 1
"Button2"
""
1 230 80 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
228 78 352 122
T 
1
LANG:1 15 set select to 0
"main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int crate,channel,lv,start,stop,i;
string datapoint,datapoint1;



  start=StartText.text;
  stop=StarText.text+5;
  crate=CrateText.text;
  for (i=start;i<=stop;i++) 
  {
   lv = i | (( 3 & 0x00ff )<<8);
   sprintf(datapoint,\"Crate%02d.Channel%02d.LVchCLKS.Send:_original.._value\",crate, i);
   sprintf(datapoint1,\"Crate%02d.Controller.CCch_Set.Send:_original.._value\",crate);

  dpSetWait(datapoint,0.);
  delay(0,100);

  dpSet(datapoint1,lv);
 }
  LEDS0.backCol=\"{0,0,0}\";
  LEDS1.backCol=\"{0,0,0}\";
  LEDS2.backCol=\"{0,0,0}\";
  LEDS3.backCol=\"{0,0,0}\";
  LEDS4.backCol=\"{0,0,0}\";
  LEDS5.backCol=\"{0,0,0}\";
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}" 0
 E E E
13 2
"HardReset"
""
1 90 130 E E E 1 E 1 E N {0,0,0} E N {255,204,153} E E
 E E
2 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
88 128 212 162
T 
1
LANG:1 14 Hard Reset Now
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int crate,channel,lv,start,stop,i,j;
string datapoint,datapoint1;



  start=StartText.text;
  stop=StartText.text+5;
  crate=CrateText.text;
	for(j=1;j<=3;j++){
  	for (i=start;i<=stop;i++) 
  	{
   		lv = i | (( 3 & 0x00ff )<<8);
 
  
		  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchCLKR.Send:_original.._value\",crate, i);
  		sprintf(datapoint1,\"Crate%02d.Controller.CCch_Set.Send:_original.._value\",crate);

		  dpSetWait(datapoint,1.0);
  		dpSet(datapoint1,lv); 
        LEDR0.backCol=\"{255,0,0}\";
			  LEDR1.backCol=\"{255,0,0}\";
			  LEDR2.backCol=\"{255,0,0}\";
			  LEDR3.backCol=\"{255,0,0}\";
			  LEDR4.backCol=\"{255,0,0}\";
			  LEDR5.backCol=\"{255,0,0}\";
   
  		delay(1);
       
  		dpSetWait(datapoint,0.0); 
  		dpSetWait(datapoint1,lv); 
  		LEDR0.backCol=\"{0,0,0}\";
		  LEDR1.backCol=\"{0,0,0}\";
		  LEDR2.backCol=\"{0,0,0}\";
		  LEDR3.backCol=\"{0,0,0}\";
		  LEDR4.backCol=\"{0,0,0}\";
		  LEDR5.backCol=\"{0,0,0}\";
  
  		delay(1);  
  	}
 	}
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {Crate00.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 3
"CrateText"
""
1 80 40 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
3 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
78 38 162 65
3 "2d" 2 0 0 0 0 0 
E
E
E
14 4
"StartText"
""
1 180 40 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
4 0 0 0 0 0
E"main()
{
	StopText.text=(int)StartText.text+5;
}" 0
 E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
178 38 262 65
3 "2d" 2 0 0 0 0 0 
E
"main()
{
	StopText.text=(int)StartText.text+5;
}" 0

"main()
{
	StopText.text=(int)StartText.text+5;
}" 0

13 9
"Button3"
""
1 230 130 E E E 1 E 1 E N {0,0,0} E N {255,204,153} E E
 E E
9 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
228 128 392 162
T 
1
LANG:1 24 Hard Reset In 30 seconds
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int crate,channel,lv,start,stop,i,j;
string datapoint,datapoint1;



  start=StartText.text;
  stop=StartText.text+5;
  crate=CrateText.text;
  
  delay(30);
	for(j=1;j<=3;j++){
	  for (i=start;i<=stop;i++) 
  	{
   		lv = i | (( 3 & 0x00ff )<<8);
 
  
 			sprintf(datapoint,\"Crate%02d.Channel%02d.LVchCLKR.Send:_original.._value\",crate, i);
		  sprintf(datapoint1,\"Crate%02d.Controller.CCch_Set.Send:_original.._value\",crate);

 	 		dpSetWait(datapoint,1.0);
  		dpSet(datapoint1,lv); 
       
  		delay(1);
       
  		dpSetWait(datapoint,0.0); 
  		dpSetWait(datapoint1,lv); 
  		delay(1);  
  	}
  }
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {Crate00.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 23
"StopText"
""
1 280 40 E E E 0 E 1 E N "_WindowText" E N "_Window" E E
 E E
22 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
278 38 362 65
3 "2d" 2 0 0 0 0 0 
E
E
E
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