V 10
1
LANG:1 8 HistPlot
PANEL,258 70 960 650 N "_3DFace" 1
"$Tab_Numb"
"/* Histogram Panel for MoPS
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456*/
/*===================================-======================================*/
/*                        HISTOGRAM PANEL FOR SCT_DCS                       */
/*-----------------------------------=--------------------------------------*/
/* AUTHORs:        Abdel Abessalam

   DESIGN ISSUEs:  This Panel contains 8 Histograms, every histogram has a
                   selector for any Rack/Crate/Channel/Parameter taking.
                   The number of bins in every histogram may be predefined.
                   Histograming starts on 'Go' button and is building for
                   Archive Data only for predefined number of hours.

   MODIF_HISTORY:  27.06.2003 - first version
  ===================================-======================================*/
main()
{
	int index;
	string dpeName;
	int rack, crate, bins, hours, ch_hv_lv_num;
	dyn_string dpeName_split, chan_para_list;
	

//=========================== initialise Histograms from 01 to 08 =============================
	for(index=1; index<=8; index++)
	  {
	  	//initialisations
	  	rack = 0; crate = 0; bins =0; hours = 0; ch_hv_lv_num =0;
	  	dpeName = \"\";
		//set channel defaults
 		setValue(\"Ch_HV_LV_Num0\"+index, \"sbMaximum\", 48);				
		chan_para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
		setValue(\"Parameter0\"+index, \"items\", chan_para_list);
		setValue(\"Parameter0\"+index, \"selectedPos\", 0);	
	
		//set a default value for the number of hours
		setValue(\"Hours0\"+index, \"text\", 5);
		//set a default value for the number of bins
		setValue(\"Bins0\"+index, \"text\", 50);
	
		//take the old configuration if it exist
		dpGet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name0\"+index+\":_online.._value\", dpeName);
		dpGet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins0\"+index+\":_online.._value\", bins);
		dpGet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour0\"+index+\":_online.._value\", hours);
	
 		if(dpeName != \"\")
 	  	  {
			dpeName_split = strsplit(dpeName, \".\");

			//set a default value for the Rack number
			sscanf(strltrim(dpeName_split[1], \"SCTmops1:Crate\"), \"%d\", crate);
			rack = crate/4 + 1; // +1 because numbering in the pannels is from 1
			crate = crate - (rack-1)*4 + 1; // +1 because numbering in the pannels is from 1
	
			setValue(\"Rack0\"+index, \"text\", rack);
			//set a default value for the Crate number		
			setValue(\"Crate0\"+index, \"text\", crate);
		
			if(patternMatch(\"Channel*\", dpeName_split[2]))
			  {
				//set a default value for the Ch_HV_LV combobox number: in this case it channel
				setValue(\"Ch_HV_LV0\"+index, \"selectedPos\", 1);
				setValue(\"Ch_HV_LV_Num0\"+index, \"sbMaximum\", 48);
				setValue(\"Parameter0\"+index, \"items\", chan_para_list);
				//set a default value for the Channel number
				sscanf(strltrim(dpeName_split[2], \"Channel\"),\"%d\", ch_hv_lv_num);
				setValue(\"Ch_HV_LV_Num0\"+index, \"text\", ch_hv_lv_num+1);
			  }		
		 	 else if(patternMatch(\"HV_card*\", dpeName_split[2]))
		      {
				//set a default value for the Ch_HV_LV combobox number: in this case it HVcard
				setValue(\"Ch_HV_LV0\"+index, \"selectedPos\", 2);			
				setValue(\"Ch_HV_LV_Num0\"+index, \"sbMaximum\", 6);
				setValue(\"Parameter0\"+index, \"items\", makeDynString(\"no para\"));
				//set a default value for the HVcard number
				sscanf(strltrim(dpeName_split[2], \"HV_card\"),\"%d\", ch_hv_lv_num);
				setValue(\"Ch_HV_LV_Num0\"+index, \"text\", ch_hv_lv_num+1);
			  }
			else if(patternMatch(\"LV_card*\", dpeName_split[2]))
			  {
				//set a default value for the Ch_HV_LV combobox number: in this case it LVcard
				setValue(\"Ch_HV_LV0\"+index, \"selectedPos\", 3);			
				setValue(\"Ch_HV_LV_Num0\"+index, \"sbMaximum\", 12);
				setValue(\"Parameter0\"+index, \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				//set a default value for the HVcard number
				sscanf(strltrim(dpeName_split[2], \"LV_card\"),\"%d\", ch_hv_lv_num);
				setValue(\"Ch_HV_LV_Num0\"+index, \"text\", ch_hv_lv_num+1);
 		  	  }

			//set a default value for the parameter number
			setValue(\"Parameter0\"+index, \"text\", dpeName_split[3]);
			//set a default value for the number of bins
			setValue(\"Bins0\"+index, \"text\", bins);
			//set a default value for the number of hours
			setValue(\"Hours0\"+index, \"text\", hours);
		  }
		else
	  	  {
	  		DebugN(\"Histograms panel INFO: no previous configuaration stored!!for histogram \"+index);
	   	  }
      }//enf of for(...)
}" 0
EE E E 1 -1 -1 0  60 50
"" 0 1
EE 2
"CBRef""0"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
6 213
"Border1"
""
1 0 455 E E E 1 E 1 E N {0,0,0} E N {51,102,153} E E
 E E
103 0 0 0 0 0
EE E
0
1
LANG:1 21 Vers.01.1, 27-06-2003
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 0 0 960 660
2 580
"Text4"
""
1 839 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
466 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 841 279 928 295
1 2 0 "s" 0 0 0 64 0 0  841 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 590
"Text9"
""
1 487 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
476 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 489 279 515 295
1 2 0 "s" 0 0 0 64 0 0  489 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 591
"Text10"
""
1 517 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
477 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 519 279 545 295
1 2 0 "s" 0 0 0 64 0 0  519 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 593
"Text12"
""
1 606 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
479 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 608 279 695 295
1 2 0 "s" 0 0 0 64 0 0  608 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 599
"Text13"
""
1 254 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
485 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 256 279 282 295
1 2 0 "s" 0 0 0 64 0 0  256 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 600
"Text14"
""
1 284 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
486 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 286 279 312 295
1 2 0 "s" 0 0 0 64 0 0  286 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 602
"Text16"
""
1 373 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
488 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 375 279 462 295
1 2 0 "s" 0 0 0 64 0 0  375 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 611
"text000"
""
1 139 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
497 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 141 279 228 295
1 2 0 "s" 0 0 0 64 0 0  141 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 626
"Text21"
""
1 720 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
512 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 722 604 748 620
1 2 0 "s" 0 0 0 64 0 0  722 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 627
"Text22"
""
1 750 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
513 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 752 604 778 620
1 2 0 "s" 0 0 0 64 0 0  752 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 629
"Text24"
""
1 838 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
515 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 840 604 927 620
1 2 0 "s" 0 0 0 64 0 0  840 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 630
"Text25"
""
1 487 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
516 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 489 604 515 620
1 2 0 "s" 0 0 0 64 0 0  489 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 631
"Text26"
""
1 517 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
517 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 519 604 545 620
1 2 0 "s" 0 0 0 64 0 0  519 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 633
"Text28"
""
1 606 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
519 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 608 604 695 620
1 2 0 "s" 0 0 0 64 0 0  608 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 634
"Text29"
""
1 254 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
520 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 256 604 282 620
1 2 0 "s" 0 0 0 64 0 0  256 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 635
"Text30"
""
1 284 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
521 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 286 604 312 620
1 2 0 "s" 0 0 0 64 0 0  286 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 637
"Text32"
""
1 372 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
523 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 604 461 620
1 2 0 "s" 0 0 0 64 0 0  374 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 638
"Text33"
""
1 20 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
524 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 22 604 48 620
1 2 0 "s" 0 0 0 64 0 0  22 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 639
"Text34"
""
1 50 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
525 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 52 604 78 620
1 2 0 "s" 0 0 0 64 0 0  52 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 641
"Text36"
""
1 139 602 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
527 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 141 604 228 620
1 2 0 "s" 0 0 0 64 0 0  141 604
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Parameter
2 577
"Text1"
""
1 721 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
463 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 723 279 749 295
1 2 0 "s" 0 0 0 64 0 0  723 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 578
"Text2"
""
1 751 277 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
464 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 753 279 779 295
1 2 0 "s" 0 0 0 64 0 0  753 279
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
2 608
"Text17"
""
1 20 279 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
494 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 22 281 48 297
1 2 0 "s" 0 0 0 64 0 0  22 281
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Rk
2 609
"Text18"
""
1 50 279 E E E 1 E 1 E N {0,0,0} E N {204,204,204} E E
 E E
495 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 52 281 78 297
1 2 0 "s" 0 0 0 64 0 0  52 281
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 Cr
22 776
"Ch_HV_LV01"
""
1 80 277 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
660 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 ""
78 275 142 301
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV01\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num01\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV01\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num01\", \"text\", 1);
				setValue(\"Parameter01\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter01\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num01\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter01\", \"items\", para_list);
				setValue(\"Parameter01\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
27 829
"Hist08"
""
1 1181 -948 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
710 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
705 349 949 604
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 828
"Hist07"
""
1 955 -949 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
709 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
471 348 718 603
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 827
"Hist06"
""
1 721 -949 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
708 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
239 348 485 603
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 825
"Hist04"
""
1 1182 -1272 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
706 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
705 25 949 280
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 824
"Hist03"
""
1 955 -1272 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
705 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
471 25 718 280
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 488
"Hist02"
""
1 973 -1232 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
376 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
238 25 485 280
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 826
"Hist05"
""
1 483 -949 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
707 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
8 348 251 603
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
27 823
"Hist01"
""
1 484 -1272 E E E 1 E 1 E N {0,255,255} E N {0,0,0} E E
 E E
704 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
8 25 251 280
2 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
0 0 50 10 0 "%H:%M" 1 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 2 1 1 0 1 N {153,153,153}
1 1 1 0 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
2 1 1 0 1 N {153,153,153}
0 1 1 0 1 N {153,153,153}
5 0 0 100 0 N {0,0,0} N {0,0,0} N {255,0,0} 1
1 0 1 1 0 1 N {255,255,0} 1 E
21 570
"Ch_HV_LV_Num04"
""
1 781 298 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
457 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
779 296 843 323
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV04\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num04\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV04\", \"text\", \"LVca\");
							setValue(\"Parameter04\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter04\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV04\", \"text\", \"HVca\");
					  		setValue(\"Parameter04\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter04\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 571
"Parameter04"
""
1 839 297 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
458 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
837 295 931 321
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 594
"Rack03"
""
1 487 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
480 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
485 295 519 322
0
E
E
E

N 1 4 1 1 0 1
21 595
"Crate03"
""
1 517 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
481 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
515 295 549 322
0
E
E
E

N 1 4 1 1 0 1
21 596
"Ch_HV_LV_Num03"
""
1 546 298 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
482 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
544 296 608 323
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV03\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num03\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV03\", \"text\", \"LVca\");
							setValue(\"Parameter03\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter03\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV03\", \"text\", \"HVca\");
					  		setValue(\"Parameter03\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter03\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 597
"Parameter03"
""
1 606 297 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
483 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
604 295 698 321
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 603
"Rack02"
""
1 254 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
489 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
252 295 286 322
0
E
E
E

N 1 4 1 1 0 1
21 604
"Crate02"
""
1 284 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
490 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
282 295 316 322
0
E
E
E

N 1 4 1 1 0 1
21 605
"Ch_HV_LV_Num02"
""
1 314 298 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
491 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
312 296 376 323
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV02\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num02\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV02\", \"text\", \"LVca\");
							setValue(\"Parameter02\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter02\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV02\", \"text\", \"HVca\");
					  		setValue(\"Parameter02\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter02\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 606
"Parameter02"
""
1 373 297 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
492 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
371 295 465 321
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 612
"Rack01"
""
1 20 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
498 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
18 295 52 322
0
E
E
E

N 1 4 1 1 0 1
21 613
"Crate01"
""
1 50 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
499 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
48 295 82 322
0
E
E
E

N 1 4 1 1 0 1
21 614
"Ch_HV_LV_Num01"
""
1 80 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
500 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
78 295 142 322
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV01\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num01\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV01\", \"text\", \"LVca\");
							setValue(\"Parameter01\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter01\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV01\", \"text\", \"HVca\");
					  		setValue(\"Parameter01\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter01\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 615
"Parameter01"
""
1 139 297 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
501 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
137 295 231 321
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 642
"Rack08"
""
1 720 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
528 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
718 620 752 647
0
E
E
E

N 1 4 1 1 0 1
21 643
"Crate08"
""
1 750 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
529 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
748 620 782 647
0
E
E
E

N 1 4 1 1 0 1
21 644
"Ch_HV_LV_Num08"
""
1 780 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
530 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
778 620 842 647
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV08\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num08\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV08\", \"text\", \"LVca\");
							setValue(\"Parameter08\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter08\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV08\", \"text\", \"HVca\");
					  		setValue(\"Parameter08\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter08\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 645
"Parameter08"
""
1 838 622 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
531 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
836 620 930 646
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 647
"Rack07"
""
1 487 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
533 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
485 620 519 647
0
E
E
E

N 1 4 1 1 0 1
21 648
"Crate07"
""
1 517 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
534 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
515 620 549 647
0
E
E
E

N 1 4 1 1 0 1
21 649
"Ch_HV_LV_Num07"
""
1 547 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
535 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
545 620 609 647
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV07\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num07\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV07\", \"text\", \"LVca\");
							setValue(\"Parameter07\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter07\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV07\", \"text\", \"HVca\");
					  		setValue(\"Parameter07\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter07\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 650
"Parameter07"
""
1 606 622 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
536 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
604 620 698 646
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 652
"Rack06"
""
1 254 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
538 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
252 620 286 647
0
E
E
E

N 1 4 1 1 0 1
21 653
"Crate06"
""
1 284 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
539 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
282 620 316 647
0
E
E
E

N 1 4 1 1 0 1
21 654
"Ch_HV_LV_Num06"
""
1 313 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
540 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
311 620 375 647
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV06\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num06\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV06\", \"text\", \"LVca\");
							setValue(\"Parameter06\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter06\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV06\", \"text\", \"HVca\");
					  		setValue(\"Parameter06\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter06\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 655
"Parameter06"
""
1 372 622 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
541 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
370 620 464 646
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 657
"Rack05"
""
1 20 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
543 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
18 620 52 647
0
E
E
E

N 1 4 1 1 0 1
21 658
"Crate05"
""
1 50 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
544 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
48 620 82 647
0
E
E
E

N 1 4 1 1 0 1
21 659
"Ch_HV_LV_Num05"
""
1 79 622 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
545 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
77 620 141 647
0
E
"main()
{
	string ch_hv_lv;
	int ch_hv_lv_num;

	// set the HV-LV card label (and parametres) depending on the number of slot used
	getValue(\"Ch_HV_LV05\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
			case \"HVca\":
			case \"LVca\":
					getValue(\"Ch_HV_LV_Num05\", \"text\", ch_hv_lv_num);
					switch(ch_hv_lv_num)
					  {
					  	case 1:
					  	case 3:
					  	case 4:
					  	case 6:
					  	case 7:
					  	case 9:
					  	case 10:
					  	case 12:
					  	case 13:
					  	case 15:
					  	case 16:
					  	case 18:
							setValue(\"Ch_HV_LV05\", \"text\", \"LVca\");
							setValue(\"Parameter05\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
							setValue(\"Parameter05\", \"selectedPos\", 0);
						break;
					  	case 2:
					  	case 5:
					  	case 8:
					  	case 11:
					  	case 14:
					  	case 17:
					  		setValue(\"Ch_HV_LV05\", \"text\", \"HVca\");
					  		setValue(\"Parameter05\", \"items\", makeDynString(\"no para\"));
							setValue(\"Parameter05\", \"selectedPos\", 0);
					  	break;
			break;
					  }
		}

}" 0

E

N 1 48 1 1 0 1
22 660
"Parameter05"
""
1 139 622 E E E 1 E 1 E N "_WindowText" E N {204,204,204} E E
 E E
546 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
2
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
LANG:5 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
137 620 231 646
30
1
LANG:1 8 ChanStat
 1
1
LANG:1 8 Vcc_Modl
 0
1
LANG:1 8 Vcc_onPS
 0
1
LANG:1 8 Vcc_Retn
 0
1
LANG:1 8 Icc_Curr
 0
1
LANG:1 8 Vdd_Modl
 0
1
LANG:1 8 Vdd_onPS
 0
1
LANG:1 8 Vdd_Retn
 0
1
LANG:1 8 Idd_Curr
 0
1
LANG:1 8 VCSELvol
 0
1
LANG:1 8 VCSELcur
 0
1
LANG:1 8 PIN_Volt
 0
1
LANG:1 8 PIN_Curr
 0
1
LANG:1 8 Mo0_Temp
 0
1
LANG:1 8 Mo1_Temp
 0
1
LANG:1 8 Idd_Trip
 0
1
LANG:1 8 Icc_Trip
 0
1
LANG:1 8 TempLimi
 0
1
LANG:1 8 TripLimi
 0
1
LANG:1 8 ClockSel
 0
1
LANG:1 8 ClockRes
 0
1
LANG:1 8 ChOutpON
 0
1
LANG:1 7 Reserve
 0
1
LANG:1 8 HVchStat
 0
1
LANG:1 8 HVchVolt
 0
1
LANG:1 8 HVchCurr
 0
1
LANG:1 8 HVnomVal
 0
1
LANG:1 8 HVcrTrip
 0
1
LANG:1 8 HVrampRt
 0
1
LANG:1 4 No01
 0
E
E
E
 0 0
21 743
"Bins04"
""
1 759 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
629 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
757 1 801 28
0
E
E
E

N 5 100 5 5 0 1
21 745
"Hours04"
""
1 845 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
631 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
843 1 887 28
0
E
E
E

N 1 100 2 1 0 1
21 747
"Bins03"
""
1 529 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
633 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
527 1 571 28
0
E
E
E

N 5 100 5 5 0 1
21 749
"Hours03"
""
1 615 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
635 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
613 1 657 28
0
E
E
E

N 1 100 2 1 0 1
21 751
"Bins02"
""
1 295 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
637 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
293 1 337 28
0
E
E
E

N 5 100 5 5 0 1
21 753
"Hours02"
""
1 381 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
639 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
379 1 423 28
0
E
E
E

N 1 100 2 1 0 1
21 755
"Bins01"
""
1 60 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
641 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
58 1 102 28
0
E
E
E

N 5 100 5 5 0 1
21 757
"Hours01"
""
1 145 3 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
643 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
143 1 187 28
0
E
E
E

N 1 100 2 1 0 1
22 758
"Ch_HV_LV04"
""
1 781 277 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
643 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 ""
779 275 843 301
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV04\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num04\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV04\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num04\", \"text\", 1);
				setValue(\"Parameter04\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter04\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num04\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter04\", \"items\", para_list);
				setValue(\"Parameter04\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
21 568
"Rack04"
""
1 721 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
455 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
719 295 753 322
0
E
E
E

N 1 4 1 1 0 1
21 569
"Crate04"
""
1 751 297 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
456 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
749 295 783 322
0
E
E
E

N 1 4 1 1 0 1
22 774
"Ch_HV_LV03"
""
1 547 277 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
658 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 ""
545 275 609 301
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV03\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num03\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV03\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num03\", \"text\", 1);
				setValue(\"Parameter03\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter03\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num03\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter03\", \"items\", para_list);
				setValue(\"Parameter03\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
22 775
"Ch_HV_LV02"
""
1 314 277 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
659 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 ""
312 275 376 301
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV02\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num02\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV02\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num02\", \"text\", 1);
				setValue(\"Parameter02\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter02\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num02\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter02\", \"items\", para_list);
				setValue(\"Parameter02\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
22 777
"Ch_HV_LV08"
""
1 780 602 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
661 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 ""
778 600 842 626
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV08\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num08\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV08\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num08\", \"text\", 1);
				setValue(\"Parameter08\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter08\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num08\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter08\", \"items\", para_list);
				setValue(\"Parameter08\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
22 778
"Ch_HV_LV07"
""
1 548 602 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
662 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 ""
546 600 610 626
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV07\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num07\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV07\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num07\", \"text\", 1);
				setValue(\"Parameter07\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter07\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num07\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter07\", \"items\", para_list);
				setValue(\"Parameter07\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
22 779
"Ch_HV_LV06"
""
1 314 602 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
663 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 ""
312 600 376 626
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV06\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num06\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV06\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num06\", \"text\", 1);
				setValue(\"Parameter06\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter06\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num06\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter06\", \"items\", para_list);
				setValue(\"Parameter06\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
22 780
"Ch_HV_LV05"
""
1 80 602 E E E 1 E 1 E N "Schwarz" E N {204,204,204} E E
 E E
664 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 ""
78 600 142 626
2
1
LANG:1 2 Ch
 1
1
LANG:1 4 Card
 0
E
"main()
{
	string ch_hv_lv;
	dyn_string para_list;

	// set the max number...etc. depending on the item used
	getValue(\"Ch_HV_LV05\", \"text\", ch_hv_lv);
	switch(ch_hv_lv)
		{
			case \"Card\":
				setValue(\"Ch_HV_LV_Num05\", \"sbMaximum\", 18);
				setValue(\"Ch_HV_LV05\", \"text\", \"LVca\");
				setValue(\"Ch_HV_LV_Num05\", \"text\", 1);
				setValue(\"Parameter05\", \"items\", makeDynString(\"LVcaTemp\", \"LVcaPowr\"));
				setValue(\"Parameter05\", \"selectedPos\", 0);
			break;
			
			default: //it is channel
				setValue(\"Ch_HV_LV_Num05\", \"sbMaximum\", 48);
				
				para_list = makeDynString(\"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
				
				setValue(\"Parameter05\", \"items\", para_list);
				setValue(\"Parameter05\", \"selectedPos\", 0);				
			break;						
		}
}" 0

E
 0 0
13 781
"Button18"
""
1 10 320 E E E 1 E 1 E N "_3DText" E N {51,102,153} E E
 E E
665 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
8 318 952 326
T 
1
LANG:1 0 
E E E E
13 784
"Button21"
""
1 -10 597 E E E 1 E 1 E N "_3DText" E N {0,51,51} E E
 E E
668 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
-12 595 932 603
T 
1
LANG:1 0 
E E E E
13 574
"Button2"
""
1 -20 0 E E E 1 E 1 E N "_Window" E N {51,102,153} E E
 E E
461 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
-22 -2 2 652
T 
1
LANG:1 0 
E E E E
13 790
"Stat04"
""
1 886 3 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
673 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
884 1 949 30
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox04\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox04\", \"visible\", FALSE);
	else
		setValue(\"StatBox04\", \"visible\", TRUE);
}" 0
 E E E
13 791
"Stat03"
""
1 656 3 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
674 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
654 1 719 30
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox03\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox03\", \"visible\", FALSE);
	else
		setValue(\"StatBox03\", \"visible\", TRUE);
}" 0
 E E E
13 792
"Stat02"
""
1 422 3 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
675 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
420 1 486 30
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox02\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox02\", \"visible\", FALSE);
	else
		setValue(\"StatBox02\", \"visible\", TRUE);
}" 0
 E E E
13 793
"Stat01"
""
1 186 2 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
676 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
184 0 251 29
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox01\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox01\", \"visible\", FALSE);
	else
		setValue(\"StatBox01\", \"visible\", TRUE);
}" 0
 E E E
13 787
"Button24"
""
1 -4 323 E E E 1 E 1 E N "_3DText" E N {51,102,153} E E
 E E
671 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
-6 321 938 329
T 
1
LANG:1 0 
E E E E
17 814
"StatBox01"
""
1 99 30 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
696 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
97 28 249 155
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 815
"StatBox02"
""
1 330 31 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
697 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
328 29 482 156
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 817
"StatBox03"
""
1 564 32 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
699 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
562 30 715 157
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 818
"StatBox04"
""
1 795 31 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
700 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
793 29 946 156
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 819
"StatBox05"
""
1 99 354 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
701 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
97 352 249 479
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 820
"StatBox06"
""
1 331 354 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
702 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
329 352 482 479
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 821
"StatBox07"
""
1 564 354 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
703 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
562 352 716 479
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
17 822
"StatBox08"
""
1 796 354 E E E 1 E 0 E N {0,255,255} E N {102,102,102} E E
 E E
704 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 109 -microsoft windows-Courier-bold-r-normal-*-*-100-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,1,2,1,49,Courier
0 ""
794 352 947 479
1
1
LANG:1 17 press Go first !!
 0
E
E
E

3 1
21 807
"Bins05"
""
1 60 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
690 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
58 324 102 351
0
E
E
E

N 5 100 5 5 0 1
21 809
"Hours05"
""
1 145 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
692 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
143 324 187 351
0
E
E
E

N 1 100 2 1 0 1
13 813
"Stat05"
""
1 186 325 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
696 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
184 323 251 352
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox05\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox05\", \"visible\", FALSE);
	else
		setValue(\"StatBox05\", \"visible\", TRUE);
}" 0
 E E E
21 803
"Bins06"
""
1 295 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
686 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
293 324 337 351
0
E
E
E

N 5 100 5 5 0 1
21 805
"Hours06"
""
1 381 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
688 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
379 324 423 351
0
E
E
E

N 1 100 2 1 0 1
13 812
"Stat06"
""
1 422 325 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
695 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
420 323 486 352
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox06\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox06\", \"visible\", FALSE);
	else
		setValue(\"StatBox06\", \"visible\", TRUE);
}" 0
 E E E
21 799
"Bins07"
""
1 529 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
682 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
527 324 571 351
0
E
E
E

N 5 100 5 5 0 1
21 801
"Hours07"
""
1 615 326 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
684 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
613 324 657 351
0
E
E
E

N 1 100 2 1 0 1
13 811
"Stat07"
""
1 656 325 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
694 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
654 323 719 352
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox07\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox07\", \"visible\", FALSE);
	else
		setValue(\"StatBox07\", \"visible\", TRUE);
}" 0
 E E E
21 795
"Bins08"
""
1 759 327 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
678 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
757 325 801 352
0
E
E
E

N 5 100 5 5 0 1
21 797
"Hours08"
""
1 845 327 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
680 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
843 325 887 352
0
E
E
E

N 1 100 2 1 0 1
13 810
"Stat08"
""
1 886 326 E E E 1 E 1 E N {0,51,255} E N "_3DFace" E E
 E E
693 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
884 324 949 353
T 
1
LANG:1 7 Statist
"main()
{
	bool visible;
	getValue(\"StatBox08\", \"visible\", visible);

	if(visible)
		setValue(\"StatBox08\", \"visible\", FALSE);
	else
		setValue(\"StatBox08\", \"visible\", TRUE);
}" 0
 E E E
13 830
"Button3"
""
1 0 10 E E E 1 E 1 E N {51,102,153} E N {51,102,153} E E
 E E
711 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
-2 8 20 662
T 
1
LANG:1 0 
E E E E
13 661
"Button11"
""
1 231 604 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
547 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
229 602 254 646
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist05\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours05\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins05\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack05\", \"text\", rack);
	getValue(\"Crate05\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num05\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter05\", \"text\", parameter);
	getValue(\"Parameter05\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV05\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV05\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist05.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name05:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins05:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour05:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist01 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox05\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 656
"Button10"
""
1 464 604 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
542 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
462 602 487 646
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist06\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours06\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins06\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack06\", \"text\", rack);
	getValue(\"Crate06\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num06\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter06\", \"text\", parameter);
	getValue(\"Parameter06\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV06\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV06\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist06.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name06:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins06:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour06:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist06 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox06\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 651
"Button9"
""
1 698 604 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
537 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
696 602 721 646
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist07\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours07\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins07\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack07\", \"text\", rack);
	getValue(\"Crate07\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num07\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter07\", \"text\", parameter);
	getValue(\"Parameter07\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV07\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV07\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist07.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name07:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins07:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour07:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist07 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox07\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 646
"Button8"
""
1 928 604 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
532 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
926 602 951 646
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist08\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours08\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins08\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack08\", \"text\", rack);
	getValue(\"Crate08\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num08\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter08\", \"text\", parameter);
	getValue(\"Parameter08\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV08\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV08\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist08.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name08:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins08:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour08:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist08 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox08\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 834
"Button14"
""
1 20 275 E E E 1 E 1 E N "_3DText" E N {0,51,51} E E
 E E
713 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
18 273 947 281
T 
1
LANG:1 0 
E E E E
13 616
"Button7"
""
1 231 279 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
502 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
229 277 254 321
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist01\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours01\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins01\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack01\", \"text\", rack);
	getValue(\"Crate01\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num01\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter01\", \"text\", parameter);
	getValue(\"Parameter01\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV01\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV01\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist01.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }
	  
	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name01:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins01:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour01:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
	
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist01 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox01\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 607
"Button6"
""
1 465 279 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
493 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
463 277 488 321
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist02\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours02\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins02\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack02\", \"text\", rack);
	getValue(\"Crate02\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num02\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter02\", \"text\", parameter);
	getValue(\"Parameter02\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV02\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV02\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist02.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name02:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins02:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour02:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist02 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}

	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox02\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 598
"Button5"
""
1 698 279 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
484 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
696 277 721 321
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist03\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours03\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins03\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack03\", \"text\", rack);
	getValue(\"Crate03\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num03\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter03\", \"text\", parameter);
	getValue(\"Parameter03\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV03\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV03\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist03.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use	  
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name03:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins03:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour03:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist03 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox03\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 573
"Button1"
""
1 929 279 E E E 1 E 1 E N {0,51,102} E N {204,204,102} E E
 E E
460 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
927 277 951 321
T 
1
LANG:1 2 Go
"main()
{
	int rack, crate, ch_hv_lv_num, parameter_pos, ch_hv_lv_pos;
	int hours, bins;
	string dpeName, parameter, ch_hv_lv, used_para;

	 //get the BarTrend object
	shape histo = getShape(\"Hist04\");

	//get the number of hours to go back in the past and define a default value (differentsfrom zero)
	getValue(\"Hours04\", \"text\", hours);

	//get the number of bin and do some protection
	getValue(\"Bins04\", \"text\", bins);
	if(bins == 0) bins = 50;
	
	//get the actual value of Rack, Crate, Ch_HV_LV, Ch_HV_LV_Num and Parameter
	getValue(\"Rack04\", \"text\", rack);
	getValue(\"Crate04\", \"text\", crate);
	getValue(\"Ch_HV_LV_Num04\", \"text\", ch_hv_lv_num);
	getValue(\"Parameter04\", \"text\", parameter);
	getValue(\"Parameter04\", \"selectedPos\", parameter_pos);//position of the para in the combobox
	getValue(\"Ch_HV_LV04\", \"text\", ch_hv_lv);
	getValue(\"Ch_HV_LV04\", \"selectedPos\", ch_hv_lv_pos);
	
	//strore the used parameters
	//sprintf(used_para, \"%d_%d_%d_%d_%d_%d_%d\", rack, crate, ch_hv_lv_pos, ch_hv_lv_num,
	//  											    parameter_pos, bins, hours);
	//dpSet(\"SCTmops1:Hist04.Name00:_original.._value\", used_para);

	crate = (rack-1)*4 + crate -1; //-1 because we start from 0 (in the data point numbering)
	ch_hv_lv_num = ch_hv_lv_num -1; // start counting from zero (in the data point numbering)
	
	//make a 2 digit label for crates
	if(crate<10)
		dpeName = \"SCTmops1:Crate0\"+crate;
	else
		dpeName = \"SCTmops1:Crate\"+crate;

	//find out which HVca, LVca and Ch is used
	switch(ch_hv_lv)
	  {
		case \"HVca\":
			//dpeName = \"\";
			DebugN(\"Histograming Error: there is no HV card parameter to be plot!!, choose an other card\");
			dpeName = dpeName+\".HV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
		
		case \"LVca\":
			//make a 2 digit label for LV card
			if(ch_hv_lv_num<10)
				dpeName = dpeName+\".LV_card0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
			else
				dpeName = dpeName+\".LV_card\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				
		break;
		
		default://it is channel
			
				//make a 2 digit label for channel
				if(ch_hv_lv_num<10)
					dpeName = dpeName+\".Channel0\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
				else
					dpeName = dpeName+\".Channel\"+ch_hv_lv_num+\".\"+parameter+\".Data\";
		break;
	  }

	//save the configuration used here for a evntual next use
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Name04:_original.._value\", dpeName);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Bins04:_original.._value\", bins);
	dpSet(\"SCTmops1:Hist0\"+$Tab_Numb+\".Hour04:_original.._value\", hours);
	setHistogram(histo, dpeName, bins, hours);
}

setHistogram(shape histo, string dpeName, int bins, int hours)
{
	int seconds, x_bin;
	int index;
	float data_min, data_max, x_step, y_step, x_max, x_min, y_max, data_mean, data_RMS;
	string Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin;
	time timeNow, timePast;
	
	dyn_int evt;
	dyn_float statistique, x_coordinate, X, Y, data_array, data_square_array;
	dyn_time time_array;
 	dyn_string statBox;
 		
 	//some intitialisation
 	x_step = 0;
 	y_step = 0;
 	x_max = 0;
 	y_max = 0;
 	
	//calculate the correspondant time to hours in the past (use tranformation to seconds)
	setPeriod(timePast, period(getCurrentTime()) - hours*3600);

	//time now
	timeNow = getCurrentTime();

	//get the data correspondant to the required period
	dpGetPeriod(timePast, timeNow, -1, dpeName+\":_offline.._value\", data_array, time_array, evt);
		
	//return if no data
	if(dynlen(data_array) == 0)
		{
			DebugN(\"Hist04 Go script: ERROR, the data point element \"+dpeName+\" has no archived data\");
			return;
		}
		
	//take the square for later RMS calculation
	for(index=1; index<=dynlen(data_array); index++)
		{
			data_square_array[index] = data_array[index]*data_array[index];
		}
		
	//find the maximum and minimum and calculate the bin width (x_step)
	data_max = dynMax(data_array);
	data_min = dynMin(data_array);
	x_step = (data_max - data_min)/(bins-1);
	
	//initialise the statistique to zero and the X coordinate to the defined binning
	for(index=1; index<=bins+3; index++) // add 2 bins (1 underflow bins and 2 overflow)
		{
			dynAppend(statistique, 0);
			dynAppend(x_coordinate, data_min + (index-2)*x_step);
		}
		
	//fill the statistique
	for(index=1; index<=dynlen(data_array); index++)
		{
			//caluculate in which bin the actual value goes
			x_bin = (data_array[index]-data_min)/x_step + 2;
			
			//increment the statistique of the correspondant bin
			statistique[x_bin] = statistique[x_bin] + 1;
		}
		
	//statistique box attributes
	sprintf(Entries, \"Entries  %d\", dynlen(data_array));
	data_mean = dynAvg(data_array);
	sprintf(Mean,    \"Mean     %f\", data_mean);
	//RMS
	data_RMS = dynAvg(data_square_array);
    data_RMS = sqrt(data_RMS - data_mean*data_mean);
    sprintf(RMS,     \"RMS      %f\", data_RMS);
    sprintf(Xmin,    \"Xmin     %f\", data_min);
    sprintf(Xmax,    \"Xmax     %f\", data_max);
    sprintf(Ymax,    \"Ymax     %d\", dynMax(statistique));
    sprintf(Ymin,    \"Ymin     %d\", dynMin(statistique));
	statBox = makeDynString(Entries, Mean, RMS, Xmin, Xmax, Ymax, Ymin); 
	setValue(\"StatBox04\", \"items\", statBox);
	
	//clear the data array. may be huge!!
	dynClear(data_array);

	//calculate the Y spep
	y_max = dynMax(statistique);
	y_step = 1;
	//if(y_max>5) y_step = y_max/5;
	
	// Y-axis coordinates stuff
	setValue(histo, \"yOrigin\", BAR_BOTTOM);
	setValue(histo, \"yCenter\", 0);
	setValue(histo, \"yRange\",  y_max+y_step);
	setValue(histo, \"yStep\",   y_step);
	setValue(histo, \"yPrec\",   0);
	setValue(histo, \"yGrid\",   FALSE);

	x_max = dynMax(x_coordinate);
	x_min = dynMin(x_coordinate);

	// X-axis coordiantes stuff
	setValue(histo, \"xOrigin\", BAR_LEFT);
	setValue(histo, \"xStep\",   x_step);
	//setValue(histo, \"xCenter\", x_min-x_step);
	setValue(histo, \"xCenter\", x_min);
	setValue(histo, \"xRange\",  x_max);
	setValue(histo, \"xPrec\",   0);
	setValue(histo, \"xGrid\",   FALSE);
	
	// set the value to the barTrend object
	setValue(histo, \"data\", x_coordinate, statistique);
 
	// step curve
	setValue(histo, \"connection\", BAR_STEPS);
 	// Fill the area
	setValue(histo, \"fill\", FALSE);
 	// Update bar trend
	histo.flush();
}" 0
 E E E
13 770
"Button17"
""
1 250 3 E E E 1 E 1 E N {51,102,153} E N {51,102,153} E E
 E E
654 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
248 1 256 655
T 
1
LANG:1 0 
E E E E
13 769
"Button16"
""
1 484 3 E E E 1 E 1 E N {51,102,153} E N {51,102,153} E E
 E E
653 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
482 1 490 655
T 
1
LANG:1 0 
E E E E
13 831
"Button4"
""
1 718 3 E E E 1 E 1 E N {51,102,153} E N {51,102,153} E E
 E E
711 0 0 0 0 0
EE E
1
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
716 1 724 655
T 
1
LANG:1 0 
E E E E
13 806
"Button29"
""
1 20 326 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
689 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
18 324 62 352
T 
1
LANG:1 4 Bins
E E E E
13 754
"Button55"
""
1 19 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
640 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
18 1 62 29
T 
1
LANG:1 4 Bins
E E E E
13 756
"Button56"
""
1 101 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
642 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
99 1 148 28
T 
1
LANG:1 5 Hours
E E E E
13 808
"Button30"
""
1 101 326 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
691 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
99 324 148 351
T 
1
LANG:1 5 Hours
E E E E
13 750
"Button53"
""
1 255 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
636 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
253 1 297 29
T 
1
LANG:1 4 Bins
E E E E
13 752
"Button54"
""
1 336 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
638 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
334 1 383 28
T 
1
LANG:1 5 Hours
E E E E
13 802
"Button27"
""
1 254 326 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
685 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
253 324 297 352
T 
1
LANG:1 4 Bins
E E E E
13 804
"Button28"
""
1 336 326 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
687 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
334 324 383 351
T 
1
LANG:1 5 Hours
E E E E
13 746
"Button51"
""
1 488 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
632 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
487 1 531 29
T 
1
LANG:1 4 Bins
E E E E
13 748
"Button52"
""
1 570 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
634 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
568 1 617 28
T 
1
LANG:1 5 Hours
E E E E
13 798
"Button25"
""
1 488 326 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
681 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
487 324 531 352
T 
1
LANG:1 4 Bins
E E E E
13 800
"Button26"
""
1 570 327 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
683 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
568 325 617 352
T 
1
LANG:1 5 Hours
E E E E
13 742
"toototo"
""
1 723 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
628 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
721 1 763 29
T 
1
LANG:1 4 Bins
E E E E
13 794
"Button20"
""
1 723 327 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
677 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
721 325 763 353
T 
1
LANG:1 4 Bins
E E E E
13 744
"Button50"
""
1 800 3 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
630 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
798 1 847 28
T 
1
LANG:1 5 Hours
E E E E
13 796
"Button22"
""
1 800 327 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
679 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 117 -microsoft windows-Courier New-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,49,Courier New
0 ""
798 325 847 352
T 
1
LANG:1 5 Hours
E 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