V 10
1
LANG:1 6 Values
PANEL,285 173 694 568 N "_3DFace" 0
"main()
{
/*
int i;
string datapoint;
for(i=0;i<=47;i++)
{
sprintf(datapoint,\"Crate00.Channel%02d.HVchVolt.Recv:_original.._value\",i);
dpSet(datapoint,0);
}
*/
}" 0
EE E E 1 -1 -1 0  30 40
"" 0 1
E"EP_childPanelOn()
{
 ChildPanelOnCentralModal(\"subpanels/ErrorMask.pnl\",\"\",makeDynString(\"\"));
}

getTimeStamp(string dpePath, int x_position, int y_position)
{
	string local_time_date;
	time time_stamp;
	bool visible;
	
	getValue(\"time_stamp1\", \"visible\", visible);
    setValue(\"time_stamp1\", \"position\",x_position-250, y_position+25);
	if(visible)
	  {
		 setValue(\"time_stamp1\", \"visible\", FALSE);
	  }
	else
	  {  	
	     dpGet(dpePath+\":_original.._stime\", time_stamp);
	     local_time_date = formatTime(\"%d/%m/%Y  %H:%M:%S\", time_stamp, \":%04d\");
	     setValue(\"time_stamp1\", \"text\", local_time_date);
		 setValue(\"time_stamp1\", \"visible\", TRUE); 
		 delay(6);
		 setValue(\"time_stamp1\", \"visible\", FALSE);
	  }
}

				
connectChannelParameters(string cratePath, int crate, string channelPath, int channel)
{
  int old_crate, old_channel, parameter;
  string parameterPath;

  dyn_string parametersNames = makeDynString(\"LVchStat\", \"HVchStat\", \"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");		
  //Remark: the actual crate and channel are passed via this function parameters

  //get the old crate and channel
  dpGet(\"Crate.Indx:_original.._value\", old_crate);
  dpGet(\"HVch.Indx:_original.._value\", old_channel);
  
  for(parameter=1; parameter<=dynlen(parametersNames); parameter++)
     {
        //first, disconnect from the old coordinates
        sprintf(parameterPath, \"Crate%02d.Channel%02d.%s.Recv:_online.._value\",
              old_crate, old_channel, parametersNames[parameter]);
        dpDisconnect(\"printValue\", parameterPath); 
      
        //second, connect to the new coordinates
        sprintf(parameterPath, \"Crate%02d.Channel%02d.%s.Recv:_online.._value\",
              crate, channel, parametersNames[parameter]);
         dpConnect(\"printValue\", parameterPath);
     }
}

printValue(string parameterPath, float parameterValue)
{
   int parameter;
   string Value, parameterName;
   dyn_string dpeSplit, parametersFormats;
   dyn_string parametersNames = makeDynString(\"LVchStat\", \"HVchStat\", \"LVch_Vcc\", \"LVps_Vcc\", \"LVretVcc\", \"LVch_Icc\", 
				\"LVch_Vdd\", \"LVps_Vdd\", \"LVretVdd\", \"LVch_Idd\", \"LVchVCSV\", \"LVchVCSI\", 
				\"LVchPINV\", \"LVchPINI\", \"MOch_Tm0\", \"MOch_Tm1\", \"HVchVolt\", \"HVchCurr\");
   int hv,crate;
   string dp;
   dyn_int probe;


   //this are the parameters format
   parametersFormats = makeDynString(\"%-3d\", \"%-3d\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-4.0f\", \"%-5.2f\", 
                                     \"%-5.2f\", \"%-5.2f\", \"%-4.0f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", 
                                     \"%-5.2f\", \"%-5.3f\", \"%-5.3f\");
   //get the parameter name
   dpeSplit = strsplit(parameterPath, \".\");
   parameterName =  dpeSplit[3];
   
   // If the value to be dispayed depends on another datapoint,
   // the conversion is processed here
   
   if(parameterName==\"HVchCurr\")
     {
        // Must do the current conversion
        // This requires knowledge of the status byte
        
        probe=makeDynInt(62005,12005,2405,435);

        dpGet(\"HVch.Numb:_original.._value\", hv);
        dpGet(\"Crate.Numb:_original.._value\",crate);

        sprintf(dp, \"Crate%02d.Channel%02d.HVchStat.Recv:_online.._value\",crate, hv);
        dpGet(dp,crate);

        hv=1+(crate&0x3);
        parameterValue=parameterValue*2.5/4096/probe[hv]/0.000001;
     }
   
   //find the corresponding format
   for(parameter=1; parameter<=dynlen(parametersFormats); parameter++)
     {
        if(parameterName == parametersNames[parameter]) break;
     }
   sprintf(Value, parametersFormats[parameter], parameterValue);
   //print the value
   setValue(parameterName, \"text\", Value);
   
   //special treatement of the channel stat parameters
   if(parameterName==\"LVchStat\")
     {
        sprintf(Value, \"%x\", parameterValue);
        //print the value in hexadecimal
        setValue(\"LVchStat_hex\", \"text\", Value);
        //display stat as color (red=tripped or green=ok)
        if(parameterValue == 32) //32 is 0x20 in hexadecimal and means LV channel tripped
          {                      //Remark: parameterValue is float, then one can't use biwise operators
             setValue(\"LVchStat_color\", \"backCol\", \"Red\");
          }
        else
         {
            setValue(\"LVchStat_color\", \"backCol\", \"Green\");
         }  
     }
   else if(parameterName==\"HVchStat\")
     {
        sprintf(Value, \"%x\", parameterValue);
        //print the value in hexadecimal
        setValue(\"HVchStat_hex\", \"text\", Value);
        //display stat as color (red=tripped or green=ok)
        if(parameterValue == 192)//192 is 0xC0 in hexadecimal and means HV channel tripped
          {                      //Remark: parameterValue is float, then one can't use biwise operators
             setValue(\"HVchStat_color\", \"backCol\", \"Red\");
          }
        else
         {
            setValue(\"HVchStat_color\", \"backCol\", \"Green\");
         }  
     }  
}

printControlledParametersValues(string cratePath, int crate, string channelPath, int channel)
{
  int parameter;
  float parameterValue;
  string Value, parameterPath;
  dyn_string parametersFormats;
  dyn_string parametersNames = makeDynString(\"LVch_Vcc\", \"LVch_Vdd\",  \"LVchVCSV\", \"LVchPINV\", \"LVchTLim\",
                               \"LVchTTrp\", \"LVchCTrp\", \"LVchDTrp\", \"LVchCLKS\", \"LVchCLKR\", \"LVchVOut\",
			                   \"HVchVolt\", \"HVchITrp\", \"HVchRamp\");	
  //this are the parameters format
  parametersFormats = makeDynString(\"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", \"%-5.2f\", 
                                    \"%-5.2f\", \"%-2d\", \"%-2d\", \"%-2d\", \"%-5.2f\", \"%-8d\", \"%-2d\");	
  //Remark: the actual crate and channel are passed via this function parameters
 
  for(parameter=1; parameter<=dynlen(parametersNames); parameter++)
     {     
        //second, connect to the new coordinates
        sprintf(parameterPath, \"Crate%02d.Channel%02d.%s.Send:_online.._value\",
              crate, channel, parametersNames[parameter]);
        dpGet(parameterPath, parameterValue);
        //use the parameter format to display it
        sprintf(Value, parametersFormats[parameter], parameterValue);
        //print the value
        setValue(parametersNames[parameter]+\"_set\", \"text\", Value);
     }
}


setParameterSendValue(string parameterName)
{
  int crate, channel, parameter;
  string parameterPath, parameterValue;

  //get the choosen value from  parameter's textField
  getValue(parameterName+\"_set\", \"text\", parameterValue);
  
  //get the actual crate and channel
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", channel);
  
  //contruct the parameter path and set the its value
  sprintf(parameterPath, \"Crate%02d.Channel%02d.%s.Send:_original.._value\", crate, channel, parameterName);  
  dpSet(parameterPath, parameterValue);
}
//Function (NoName)_General()
" 0
 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 0
"Text2"
""
1 450 40 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 452 42 678 408
1 2 0 "s" 0 0 0 65 0 0  452 42
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 382
"Text86"
""
1 460 35 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
366 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 462 37 678 58
1 2 0 "s" 0 0 0 65 0 0  462 37
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 LV CARD
2 208
"Text3"
""
1 450 410 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
201 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 452 412 678 548
1 2 0 "s" 0 0 0 65 0 0  452 412
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 HV CARD
2 210
"Text15"
""
1 600 461 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
203 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i,icard,icardold,hvold;
int crate,count,crateold;
string channel;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
icard=hv/8;
icardold=hvold/8;
sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Recv:_online.._value\",crateold,icardold);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
dpConnect(\"Connection\",channel,\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
}
Connection(string dp, int iNewValue)
{
int crate,i,icard;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
  icard=i/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Recv:_online.._value\",crate,icard);
  dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
  string datapoint;
  int crate,i,icard;
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Recv:_online.._value\",crate,icard);
  dpGet(datapoint,fNewValue);
  setValue(\"\", \"text\", fNewValue );
  ////DebugN(\"displayed datapoint\",datapoint);

}

//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel, card;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);
card=channel/8;

sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Recv\",crate,card); 
   
   getTimeStamp(datapoint, x_position, y_position);
}
" 0
 0 1 1 0 1 E U  1 E 602 463 658 479
1 2 0 "s" 0 0 0 64 0 0  602 463
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVcaMask
2 211
"Text50"
""
1 477 63 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
204 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 479 65 545 79
0 2 0 "s" 0 0 0 64 0 0  479 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL: 
2 212
"Text52"
""
1 480 122 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
205 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 124 520 138
0 2 0 "s" 0 0 0 64 0 0  482 124
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Trip
2 213
"Text54"
""
1 480 89 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
206 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 91 522 103
0 2 0 "s" 0 0 0 64 0 0  482 91
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Mask
2 214
"Text68"
""
1 480 173 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
207 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 175 570 191
0 2 0 "s" 0 0 0 64 0 0  482 175
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 MONITORING: 
2 216
"Text84"
""
1 480 200 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
209 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 202 558 218
0 2 0 "s" 0 0 0 64 0 0  482 202
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Temperature
2 217
"Text85"
""
1 480 230 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
210 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 232 548 248
0 2 0 "s" 0 0 0 64 0 0  482 232
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 AC Power
2 218
"Text89"
""
1 480 440 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
211 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 442 548 458
0 2 0 "s" 0 0 0 64 0 0  482 442
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL :
2 219
"Text90"
""
1 480 463 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
212 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 465 528 478
0 2 0 "s" 0 0 0 64 0 0  482 465
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Mask
2 222
"LVcaMask"
""
1 597 90 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
215 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i,icard,icardold,hvold;
int crate,count,crateold;
string channel;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
icard=hv/4;
icardold=hvold/4;
sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Recv:_online.._value\",crateold,icardold);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
dpConnect(\"Connection\",channel,\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
}
Connection(string dp, int iNewValue)
{
int crate,i,icard;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Recv:_online.._value\",crate,icard);
  dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}

EP_textFieldInCB1(string dp, int iNewValue)
{ 
  string datapoint;
  int crate,i,icard;
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Recv:_online.._value\",crate,icard);
  dpGet(datapoint,iNewValue);
 // DebugN(\"first\",iNewValue);
  //iNewValue=255;
  DebugN(\"first\",iNewValue);
  iNewValue=0xff-(iNewValue  & 0xff);
  DebugN(iNewValue);
//  iNewValue=(1  & 0x00ff)<<8;
//  DebugN(iNewValue);
//    iNewValue = ((iNewValue  & 0x00ff)>>4);
/*
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;   
  if(iNewValue==240)  iNewValue=15;
  if(iNewValue==240)  iNewValue=15;  
*/
  DebugN(iNewValue); 
  setValue(\"\", \"text\", iNewValue );
  ////DebugN(\"displayed datapoint\",datapoint);

}

//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel, card;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);
card=channel/4;

sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Recv\",crate,card); 
   
   getTimeStamp(datapoint, x_position, y_position);
}" 0
 0 1 1 0 1 E U  1 E 599 92 655 108
1 2 0 "s" 0 0 0 64 0 0  599 92
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcaMask
2 223
"LVcaTrip"
""
1 595 122 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
216 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i,icard;
int crate,count;
string channel;



dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaTrip.Send:_online.._value\",crate, icard);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  dpConnect(\"EP_textFieldInCB\",channel);

count=47;
for(i=0; i<= count;i++)
  {
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTrip.Send:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

EP_textFieldInCB(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1;


dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaTrip.Send:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
fNewValue=fNewValue/2.5;
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1;

dpGet(\"Crate.Numb:_original.._value\", crate);

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaTrip.Send:_online.._value\",crate, icard);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/2.5;
setValue(\"\", \"text\", dpValToString(dp, fNewValue, TRUE) ); 

}

//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 597 124 653 140
1 2 0 "s" 0 0 0 64 0 0  597 124
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcaTrip
2 225
"LVcaTemp"
""
1 594 201 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
218 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i,icard,icardold,hvold;
int crate,count,crateold;
string channel;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
icard=hv/4;
icardold=hvold/4;
sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.Recv:_online.._value\",crateold,icardold);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
dpConnect(\"Connection\",channel,\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
}
Connection(string dp, int iNewValue)
{
int crate,i,icard;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.Recv:_online.._value\",crate,icard);
  dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
  string datapoint;
  int crate,i,icard;
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.Recv:_online.._value\",crate,icard);
  dpGet(datapoint,fNewValue);
  setValue(\"\", \"text\", fNewValue );
  ////DebugN(\"displayed datapoint\",datapoint);

}
//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel, card;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);
card=channel/4;

sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.Recv\",crate,card); 
   
   getTimeStamp(datapoint, x_position, y_position);
}" 0
 0 1 1 0 1 E U  1 E 596 203 652 219
1 2 0 "s" 0 0 0 64 0 0  596 203
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchTemp
2 226
"LVchPowr"
""
1 595 230 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
219 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i,icard,icardold,hvold;
int crate,count,crateold;
string channel;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
icard=hv/4;
icardold=hvold/4;
sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.Recv:_online.._value\",crateold,icardold);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
dpConnect(\"Connection\",channel,\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
}
Connection(string dp, int iNewValue)
{
int crate,i,icard;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.Recv:_online.._value\",crate,icard);
  dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
  string datapoint;
  int crate,i,icard;
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  icard=i/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.Recv:_online.._value\",crate,icard);
  dpGet(datapoint,fNewValue);
  setValue(\"\", \"text\", fNewValue );
  ////DebugN(\"displayed datapoint\",datapoint);

}
//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel, card;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);
card=channel/4;

sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.Recv\",crate,card); 
   
   getTimeStamp(datapoint, x_position, y_position);
}" 0
 0 1 1 0 1 E U  1 E 597 232 653 248
1 2 0 "s" 0 0 0 64 0 0  597 232
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchPowr
2 384
"Text103"
""
1 450 403 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
368 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 452 405 678 426
1 2 0 "s" 0 0 0 64 0 0  452 405
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9   HV CARD
2 275
"hvcard"
""
1 535 404 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
267 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Item.HV}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Item.HV}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0
 E 0 1 1 0 1 E U  1 E 537 406 563 422
0 2 0 "s" 0 0 0 64 0 0  537 406
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 hv card
2 385
"Text104"
""
1 450 35 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
369 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 452 37 678 58
1 2 0 "s" 0 0 0 64 0 0  452 37
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9   LV CARD
2 304
"lvcard"
""
1 535 36 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
295 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Item.HV}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Item.HV}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0
 E 0 1 1 0 1 E U  1 E 537 38 556 53
0 2 0 "s" 0 0 0 64 0 0  537 38
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 0
2 227
"Text8"
""
1 595 406 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
220 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
string datapoint,dp1;
int hv,i,icard;
int crate,count;
string channel;



dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/8;
sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  return;
  }
dpConnect(\"EP_textFieldInCB\",channel);
count=47;
for(i=0; i<= count;i++)
  {
  icard=i/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

EP_textFieldInCB(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1;


dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1;

dpGet(\"Crate.Numb:_original.._value\", crate);

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);
dpGet(dp1,fNewValue);
setValue(\"\", \"text\", dpValToString(dp, fNewValue, TRUE) ); 

}
//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 597 408 619 424
1 2 0 "s" 0 0 0 64 0 0  597 408
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 403
"HVcaStat_hex"
""
1 624 405 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
385 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
string datapoint,dp1;
int hv,i,icard;
int crate,count;
string channel;



dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/8;
sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  return;
  }
dpConnect(\"EP_textFieldInCB\",channel);
count=47;
for(i=0; i<= count;i++)
  {
  icard=i/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate,icard);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

EP_textFieldInCB(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1, xTmp;


dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);

sprintf(xTmp,\"%x\", fNewValue);
setValue(\"\", \"text\", xTmp);
//setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv,icard;
string dp1, xTmp;

dpGet(\"Crate.Numb:_original.._value\", crate);

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaStat.Recv:_online.._value\",crate, icard);
dpGet(dp1,fNewValue);

sprintf(xTmp,\"%x\", fNewValue);
setValue(\"\", \"text\", xTmp);
//setValue(\"\", \"text\", dpValToString(dp, fNewValue, TRUE) ); 

}
//dpConnect(\"add\", \"A.:_online.._value\", \"B.:_online.._value\");
//}
//add(string dp1, int a, string dp2, int b)
//{
//dpSet(\"C.:_original.._value\", a + b);

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 626 407 648 423
1 2 0 "s" 0 0 0 64 0 0  626 407
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 221
"HVcaStat"
""
1 553 406 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
214 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 555 408 611 424
0 2 0 "s" 0 0 0 64 0 0  555 408
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 134
"Text70"
""
1 552 38 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
132 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 554 40 600 53
0 2 0 "s" 0 0 0 64 0 0  554 40
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 437
"CCcf_Ack"
""
1 594 334 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
417 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

  EP_textFieldIn();
 

}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i;
int crate,count;
string channel;



dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

sprintf(datapoint, \"Crate%02d.Controller.CCcf_Ack.Recv:_online.._value\",crate, hv);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
 dpConnect(\"EP_textFieldInCB\",channel);

count=47;
for(i=0; i<= count;i++)
  {
  sprintf(datapoint,\"Crate%02d.Controller.CCcf_Ack.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

EP_textFieldInCB(string dp, float fNewValue)
{ 
int crate;
int hv;
float a,b,t,x;
string dp1,sTmp;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Controller.CCcf_Ack.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//t=1/(log(fNewValue*2.5/800.)/3435.+0.0033557)-273.;
//fNewValue=t;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
float a,b,t,x;
string dp1,sTmp;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Controller.CCcf_Ack.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//t=1/(log(fNewValue*2.5/800.)/3435.+0.0033557)-273.;
//fNewValue=t;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "
main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint,\"Crate%02d.Controller.CCcf_Ack.Recv\",crate); 
   
   getTimeStamp(datapoint, x_position, y_position);
}


" 0
 0 1 1 0 1 E U  1 E 596 336 650 352
1 2 0 "s" 0 0 0 64 0 0  596 336
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 MOch_Tm1
2 438
"Text14"
""
1 480 334 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
418 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 336 588 352
0 2 0 "s" 0 0 0 64 0 0  482 336
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 15 Acknowledgement
2 502
"Text29"
""
1 593 440 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
474 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 595 442 681 458
0 2 0 "s" 0 0 0 64 0 0  595 442
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 MONITORING:
2 505
"LVcaStat"
""
1 592 37 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
477 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
  dyn_errClass err;
  int crate, channel,i, value,icard,icardold;
  int crateold, channelold;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPchannel=\"HVch.Numb:_original.._value\";
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate,
        DPchannel, channel);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold,
        \"HVch.Indx:_original.._value\", channelold);
        icardold=channelold/4;

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crateold, icardold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  //DebugN(\"DP connect\",DPchannel);
  dpConnect(\"ConnectSelect\", DPcrate, DPchannel);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel,icard,icardold;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold,
      \"HVch.Indx:_original.._value\", channelold);
      icardold=channelold/4;

  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crateold,icardold);
  //DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);
  icard=channel/4;     
  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crate,icard);
  dpConnect(\"ConnectValue\",DPvalue); 
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue;
  int crate,channel,icard;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);
  icard=channel/4;
  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crate,icard);
  dpGet(DPvalue,value);
  setValue(\"\", \"text\", value);
  //DebugN(\"displayed datapoint\",datapoint);

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 594 39 618 56
1 2 0 "s" 0 0 0 64 0 0  594 39
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 506
"LVcaStat_hex"
""
1 624 37 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
478 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
  dyn_errClass err;
  int crate, channel,i, value;
  int crateold, channelold,icardold,icard;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPchannel=\"HVch.Numb:_original.._value\";
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate,
        DPchannel, channel);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold,
        \"HVch.Indx:_original.._value\", channelold);
        icardold=channelold/4;

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crateold, icardold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  //DebugN(\"DP connect\",DPchannel);
  dpConnect(\"ConnectSelect\", DPcrate, DPchannel);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel,icard,icardold;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold,
      \"HVch.Indx:_original.._value\", channelold);
      icardold=channelold/4;

  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crateold,icardold);
  //DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);
  icard=channel/4;
        
  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crate,icard);
  dpConnect(\"ConnectValue\",DPvalue); 
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue, xTmp;
  int crate,channel,icard;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);
  icard=channel/4;
  sprintf(DPvalue,\"Crate%02d.LV_card%02d.LVcaStat.Recv:_online.._value\",crate,icard);
  dpGet(DPvalue,value);

  //Display in hexadecimal
  sprintf(xTmp,\"%x\", value);
  setValue(\"\", \"text\", xTmp);
  //DebugN(\"displayed datapoint\",datapoint);

}

" 0
 E 0 1 1 0 1 E U  1 E 626 39 650 56
1 2 0 "s" 0 0 0 64 0 0  626 39
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 507
"Text31"
""
1 10 10 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
478 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 12 678 33
1 2 0 "s" 0 0 0 64 0 0  12 12
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5    CC
2 508
"Text37"
""
1 53 11 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
479 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Item.HV}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Item.HV}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0
 E 0 1 1 0 1 E U  1 E 55 13 141 29
0 2 0 "s" 0 0 0 64 0 0  55 13
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 elmbnb
2 509
"Text38"
""
1 288 13 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
480 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 290 15 336 28
0 2 0 "s" 0 0 0 64 0 0  290 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 514
"Text40"
""
1 338 13 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 340 15 386 28
0 2 0 "s" 0 0 0 64 0 0  340 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Channel
2 516
"Text45"
""
1 392 13 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
487 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
  dyn_errClass err;
  int crate, channel,i, value;
  int crateold, channelold;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold);

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crateold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  ////DebugN(\"DP connect\",DPchannel);
  dpConnect(\"ConnectSelect\", DPcrate);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold);

  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crateold);
  ////DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate);
        
  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
  dpConnect(\"ConnectValue\",DPvalue); 
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue, xTmp;
  int crate,channel, number, error,val;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate);

  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
  dpGet(DPvalue,value);

  //Display channel number
  //value =  0xffff - (value &  0xff0000);
  //value =  (value & 0x00f) >> 0 ;
  //((value & 0x00ff )<< 8);
  val = value;
  number = (0x000000ff & val);
  Debug(number);
  error  = (0x0000ff00 &val)>>8; 
  
  //(value & 0x001) >> 0)
  //sprintf(xTmp,\"%x\", value);
  setValue(\"\", \"text\", number);
  ////DebugN(\"displayed datapoint\",datapoint);

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint,\"Crate%02d.Controller.CCchStat.Recv\",crate); 
   
   getTimeStamp(datapoint, x_position, y_position);
}" 0
 0 1 1 0 1 E U  1 E 394 15 433 31
1 2 0 "s" 0 0 0 64 0 0  394 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 CCstatH
2 519
"Text49"
""
1 497 13 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
490 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
  dyn_errClass err;
  int crate, channel,i, value;
  int crateold, channelold;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold);

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crateold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  ////DebugN(\"DP connect\",DPchannel);
  dpConnect(\"ConnectSelect\", DPcrate);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold);

  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crateold);
  ////DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate);
        
  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
  dpConnect(\"ConnectValue\",DPvalue); 
 // dpSet(\"Info.Name:_original.._value\", \"ELMB error\");
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue, xTmp;
  int crate,channel, number, error,val;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate);

  sprintf(DPvalue,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
  dpGet(DPvalue,value);

  //Display channel number
  //value =  0xffff - (value &  0xff0000);
  //value =  (value & 0x00f) >> 0 ;
  //((value & 0x00ff )<< 8);
  val = value;
  number = (0x000000ff & val);
  //Debug(number);
  error  = (0x0000ff00 &val)>>8; 
  
  //(value & 0x001) >> 0)
  //sprintf(xTmp,\"%x\", value);
  setValue(\"\", \"text\", error);
  ////DebugN(\"displayed datapoint\",datapoint);

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint,\"Crate%02d.Controller.CCchStat.Recv\",crate); 
   
   getTimeStamp(datapoint, x_position, y_position);
}" 0
 0 1 1 0 1 E U  1 E 499 15 538 31
1 2 0 "s" 0 0 0 64 0 0  499 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 CCstatH
2 520
"Text51"
""
1 454 13 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
491 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 456 15 502 28
0 2 0 "s" 0 0 0 64 0 0  456 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Error
2 521
"CCcf_AckE"
""
1 594 360 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
491 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

  EP_textFieldIn();
 

}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i;
int crate,count;
string channel;



dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

sprintf(datapoint, \"Crate%02d.Controller.CCcf_AckE.Recv:_online.._value\",crate, hv);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
 dpConnect(\"EP_textFieldInCB\",channel);

count=47;
for(i=0; i<= count;i++)
  {
  sprintf(datapoint,\"Crate%02d.Controller.CCcf_AckE.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

EP_textFieldInCB(string dp, float fNewValue)
{ 
int crate;
int hv;
float a,b,t,x;
string dp1,sTmp;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Controller.CCcf_AckE.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//t=1/(log(fNewValue*2.5/800.)/3435.+0.0033557)-273.;
//fNewValue=t;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
float a,b,t,x;
string dp1,sTmp;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Controller.CCcf_AckE.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//t=1/(log(fNewValue*2.5/800.)/3435.+0.0033557)-273.;
//fNewValue=t;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 "
main()
{
CurrentChannel();

}

CurrentChannel()
{
int x_position, y_position;
int crate, channel;
string datapoint;

getValue(\"\", \"position\", x_position, y_position);

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint,\"Crate%02d.Controller.CCcf_AckE.Recv\",crate); 
   
   getTimeStamp(datapoint, x_position, y_position);
}


" 0
 0 1 1 0 1 E U  1 E 596 362 650 378
1 2 0 "s" 0 0 0 64 0 0  596 362
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 4 Ackn
2 522
"Text41"
""
1 480 360 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
492 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 362 588 378
0 2 0 "s" 0 0 0 64 0 0  482 362
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Ackn. Error
2 524
"Text82"
""
1 10 47 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
493 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 49 448 415
1 2 0 "s" 0 0 0 65 0 0  12 49
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 525
"LVchannels"
""
1 10 35 E E E 1 E 1 E N {0,0,0} E N {204,204,153} 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 12 37 448 58
1 2 0 "s" 0 0 0 64 0 0  12 37
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13    LV CHANNEL
2 526
"LVch_Vcc"
""
1 249 89 E E E 1 E 1 E N {0,0,0} E N {255,255,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 251 91 287 107
1 2 0 "s" 0 0 0 64 0 0  251 91
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVch_Vcc
2 527
"Text55"
""
1 20 64 E E E 1 E 1 E N {0,0,51} E N "_Transparent" E E
 E E
496 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 66 92 82
0 2 0 "s" 0 0 0 64 0 0  22 66
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL: 
2 528
"Text57"
""
1 20 91 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 22 93 68 106
0 2 0 "s" 0 0 0 64 0 0  22 93
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vcc (V)
2 529
"Text58"
""
1 20 118 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
498 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 120 68 133
0 2 0 "s" 0 0 0 64 0 0  22 120
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vdd (V)
2 530
"Text59"
""
1 20 143 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
499 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 145 78 161
0 2 0 "s" 0 0 0 64 0 0  22 145
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 VCSEL (V)
2 531
"Text60"
""
1 20 170 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
500 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 172 88 188
0 2 0 "s" 0 0 0 64 0 0  22 172
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 PIN Bias (V)
2 532
"Text61"
""
1 20 231 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
501 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 233 98 249
0 2 0 "s" 0 0 0 64 0 0  22 233
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 Idd Trip (ms)
2 533
"Text62"
""
1 20 209 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
502 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 211 98 227
0 2 0 "s" 0 0 0 64 0 0  22 211
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 18 Icc Trip (ms) Trip
2 534
"Text63"
""
1 20 268 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
503 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 270 88 286
0 2 0 "s" 0 0 0 64 0 0  22 270
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Warn (C)
2 535
"Text64"
""
1 20 291 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
504 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 293 88 309
0 2 0 "s" 0 0 0 64 0 0  22 293
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Trip (C)
2 536
"Text65"
""
1 20 328 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
505 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 330 88 346
0 2 0 "s" 0 0 0 64 0 0  22 330
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Clock Sel
2 537
"Text66"
""
1 20 354 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
506 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 356 88 372
0 2 0 "s" 0 0 0 64 0 0  22 356
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Reset
2 538
"Text67"
""
1 20 378 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
507 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 380 68 393
0 2 0 "s" 0 0 0 64 0 0  22 380
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Out On
2 539
"Text69"
""
1 169 64 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
508 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 171 66 257 80
0 2 0 "s" 0 0 0 64 0 0  171 66
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 MONITORING : 
2 540
"Text71"
""
1 170 91 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
509 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 172 93 215 106
0 2 0 "s" 0 0 0 64 0 0  172 93
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vcc (V)
2 541
"Text72"
""
1 170 118 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
510 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 172 120 216 133
0 2 0 "s" 0 0 0 64 0 0  172 120
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 Vdd (V) 
2 542
"Text73"
""
1 172 145 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
511 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 174 147 240 163
0 2 0 "s" 0 0 0 64 0 0  174 147
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 VCSEL
2 543
"Text74"
""
1 172 170 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 174 172 250 188
0 2 0 "s" 0 0 0 64 0 0  174 172
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 PIN Bias
2 544
"Text75"
""
1 196 211 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 198 213 244 226
0 2 0 "s" 0 0 0 64 0 0  198 213
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1  
2 545
"Text76"
""
1 172 209 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
514 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 174 211 220 224
0 2 0 "s" 0 0 0 64 0 0  174 211
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Icc (mA) 
2 546
"Text77"
""
1 172 270 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 174 272 240 288
0 2 0 "s" 0 0 0 64 0 0  174 272
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 T Link 0 (C) 
2 547
"Text78"
""
1 172 293 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 174 295 238 309
0 2 0 "s" 0 0 0 64 0 0  174 295
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 T Link 1 (C)
2 548
"Text88"
""
1 172 234 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 174 236 220 249
0 2 0 "s" 0 0 0 64 0 0  174 236
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 Idd (mA)
2 549
"Text5"
""
1 10 432 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
518 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 434 448 550
1 2 0 "s" 0 0 0 65 0 0  12 434
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 550
"HVchCurr"
""
1 290 482 E E E 1 E 1 E N {0,0,0} E N {153,204,255} 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 292 484 398 500
1 2 0 "s" 0 0 0 64 0 0  292 484
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVchCurr
2 551
"Text96"
""
1 210 432 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 212 434 308 450
0 2 0 "s" 0 0 0 64 0 0  212 434
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 MONITORING :
2 552
"Text98"
""
1 209 484 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 211 486 257 499
0 2 0 "s" 0 0 0 64 0 0  211 486
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Current
2 553
"Text99"
""
1 209 454 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
522 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 211 456 277 469
0 2 0 "s" 0 0 0 64 0 0  211 456
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Voltage (V)
2 554
"Text91"
""
1 19 431 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 21 433 91 449
0 2 0 "s" 0 0 0 64 0 0  21 433
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL :
2 555
"Text92"
""
1 20 452 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 22 454 98 480
0 2 0 "s" 0 0 0 64 0 0  22 454
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Voltage (V)
2 556
"Text93"
""
1 20 480 E E E 1 E 1 E N {0,0,0} E N "_Transparent" 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  0 E 22 482 108 498
0 2 0 "s" 0 0 0 64 0 0  22 482
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 Curr Trip 
2 557
"Text94"
""
1 20 516 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
526 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 518 68 531
0 2 0 "s" 0 0 0 64 0 0  22 518
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Ramp
2 558
"LV_Channel_Numb"
""
1 134 36 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
527 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  //show which channel has been selected
  dpConnect(\"displayActualChannel\", \"HVch.Numb:_online.._value\");
}

displayActualChannel(string dpePath, int channel)
{
   setValue(\"LV_Channel_Numb\", \"text\", channel);
   setValue(\"HV_Channel_Numb\", \"text\", channel);
}
" 0
 E 0 1 1 0 1 E U  1 E 136 38 222 54
0 2 0 "s" 0 0 0 64 0 0  136 38
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 lv channel
2 559
"Text81"
""
1 10 407 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
528 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 409 448 430
1 2 0 "s" 0 0 0 64 0 0  12 409
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13   HV CHANNELS
2 560
"HV_Channel_Numb"
""
1 143 408 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
529 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 145 410 231 426
0 2 0 "s" 0 0 0 64 0 0  145 410
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 hv channel
2 561
"LVchStat"
""
1 343 37 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
530 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 345 39 369 56
1 2 0 "s" 0 0 0 64 0 0  345 39
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 562
"Text43"
""
1 288 38 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
531 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 290 40 336 53
0 2 0 "s" 0 0 0 64 0 0  290 40
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 563
"LVchStat_hex"
""
1 375 37 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
532 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 377 39 401 56
1 2 0 "s" 0 0 0 64 0 0  377 39
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 564
"Text105"
""
1 300 91 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
533 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 302 93 325 106
0 2 0 "s" 0 0 0 64 0 0  302 93
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 PS
2 565
"Text106"
""
1 373 91 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
534 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 375 93 395 106
0 2 0 "s" 0 0 0 64 0 0  375 93
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Ret
2 566
"Text108"
""
1 217 91 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
535 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 219 93 242 106
0 2 0 "s" 0 0 0 64 0 0  219 93
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Mod
2 567
"Text109"
""
1 374 118 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
536 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 376 120 396 133
0 2 0 "s" 0 0 0 64 0 0  376 120
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Ret
2 568
"Text112"
""
1 301 118 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
537 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 303 120 326 133
0 2 0 "s" 0 0 0 64 0 0  303 120
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 PS
2 569
"Text114"
""
1 234 145 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
538 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 236 147 259 160
0 2 0 "s" 0 0 0 64 0 0  236 147
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 V
2 570
"Text115"
""
1 305 144 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
539 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 307 146 330 159
0 2 0 "s" 0 0 0 64 0 0  307 146
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 I
2 571
"Text117"
""
1 234 170 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
540 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 236 172 259 185
0 2 0 "s" 0 0 0 64 0 0  236 172
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 V
2 572
"Text118"
""
1 305 169 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
541 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 307 171 330 184
0 2 0 "s" 0 0 0 64 0 0  307 171
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 I
2 573
"HVchStat"
""
1 343 409 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
542 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 345 411 369 428
1 2 0 "s" 0 0 0 64 0 0  345 411
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 574
"Text97"
""
1 288 410 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
543 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 290 412 336 425
0 2 0 "s" 0 0 0 64 0 0  290 412
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 575
"HVchStat_hex"
""
1 375 391 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
544 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 377 411 399 428
1 2 0 "s" 0 0 0 64 0 0  377 411
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 576
"Text16"
""
1 259 482 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
545 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 261 484 307 500
0 2 0 "s" 0 0 0 64 0 0  261 484
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 ( nA)
2 577
"Text35"
""
1 20 494 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
546 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 496 68 512
0 2 0 "s" 0 0 0 64 0 0  22 496
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 ( nA)
2 578
"Text36"
""
1 218 118 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
547 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 220 120 243 133
0 2 0 "s" 0 0 0 64 0 0  220 120
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Mod
2 579
"LVps_Vcc"
""
1 321 90 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
548 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 323 92 359 108
1 2 0 "s" 0 0 0 64 0 0  323 92
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVps_Vcc
2 580
"LVretVcc"
""
1 398 90 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
549 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 400 92 436 108
1 2 0 "s" 0 0 0 64 0 0  400 92
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVretVcc
2 581
"LVch_Icc"
""
1 251 208 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
550 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 253 210 289 226
1 2 0 "s" 0 0 0 64 0 0  253 210
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVch_Icc
2 582
"LVch_Vdd"
""
1 250 117 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
551 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 252 119 288 135
1 2 0 "s" 0 0 0 64 0 0  252 119
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVch_Vdd
2 583
"LVps_Vdd"
""
1 322 117 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
552 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 324 119 360 135
1 2 0 "s" 0 0 0 64 0 0  324 119
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVps_Vdd
2 584
"LVch_Idd"
""
1 251 233 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
553 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 253 235 289 251
1 2 0 "s" 0 0 0 64 0 0  253 235
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVch_Idd
2 585
"LVchVCSV"
""
1 251 144 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
554 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 253 146 289 162
1 2 0 "s" 0 0 0 64 0 0  253 146
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchVCSV
2 586
"LVchVCSI"
""
1 321 144 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
555 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 323 146 359 162
1 2 0 "s" 0 0 0 64 0 0  323 146
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchVCSI
2 587
"LVchPINV"
""
1 251 171 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
556 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 253 173 289 189
1 2 0 "s" 0 0 0 64 0 0  253 173
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchPINV
2 588
"LVchPINI"
""
1 321 171 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
557 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 323 173 359 189
1 2 0 "s" 0 0 0 64 0 0  323 173
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchPINI
2 589
"MOch_Tm0"
""
1 251 269 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
558 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 253 271 289 287
1 2 0 "s" 0 0 0 64 0 0  253 271
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 MOch_Tm0
2 590
"MOch_Tm1"
""
1 251 294 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
559 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
string datapoint,dp1;
int hv,i,try;
int crate,count,crateold,hvold;
string channel;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crateold,hvold);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
dpConnect(\"Connection\",channel,\"Crate.Numb:_original.._value\");
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crate,i);
  dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
  string datapoint;
  int crate,i;
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crate,i);
  dpGet(datapoint,fNewValue);
  setValue(\"\", \"text\", fNewValue );
  //DebugN(\"displayed datapoint\",datapoint);

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 253 296 289 312
1 2 0 "s" 0 0 0 64 0 0  253 296
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 MOch_Tm1
2 591
"HVchVolt"
""
1 291 453 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
560 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 293 455 399 471
1 2 0 "s" 0 0 0 64 0 0  293 455
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVchVolt
2 592
"LVretVdd"
""
1 398 117 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
561 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 400 119 436 135
1 2 0 "s" 0 0 0 64 0 0  400 119
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVretVdd
13 481
"Button4"
""
1 570 153 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
456 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
568 151 592 175
T 
1
LANG:1 0 
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x001) >> 0){  // on
 
  value=(value - 0x001);
//  value=0;
  dpSetWait(dpValue, value);
 //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x001);
  //  value=1;
    dpSetWait(dpValue, value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{

  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/4;
   iNewValue = iNewValue*4;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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




EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x001) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 482
"Button5"
""
1 590 153 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
457 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 ""
588 151 612 175
T 
1
LANG:1 0 
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x002) >> 0){  // on
 
  value=(value - 0x002);
//  value=0;
  dpSetWait(dpValue, value);
  //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x002);
//    value=255 - 2;
    dpSetWait(dpValue,value);
    //DebugN(\"1!\", value); 
     }
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/4;
   iNewValue = iNewValue*4+1;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x002) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 483
"Button14"
""
1 610 153 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
458 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
608 151 632 175
T 
1
LANG:1 0 
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x004) >> 0){  // on
 
  value=(value - 0x004);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x004);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/4;
   iNewValue = iNewValue*4+2;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x004) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 484
"Button15"
""
1 630 153 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
459 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 ""
628 151 652 175
T 
1
LANG:1 0 
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x008) >> 0){  // on
 
  value=(value - 0x008);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x008);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/4;
   iNewValue = iNewValue*4+3;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/4;
sprintf(dpValue,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.LV_card%02d.LVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x08) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

14 232
"LVcaTrip_set"
""
1 525 122 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
225 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 ""
523 120 587 146
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
string datapoint;
int crate, hv,icard;
dyn_errClass err;

//dpGet(\"Item.Crate:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaTrip.Send:_online.._value\",crate, icard); 

  if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            datapoint);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_textFieldInCB(string dp, float fNewValue)
{
fNewValue=fNewValue/2.5;
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string datapoint;
int crate, hv,icard;

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

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaTrip.Send:_original.._value\",crate,icard); 
iNewValue=iNewValue*2.5;
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


// SimpleCtrlScript {EP_textFieldOut}
// DP {Crate1.HV0.HVcoRamp}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 289
"LVcaMask_set"
""
1 525 88 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
281 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 ""
523 86 587 112
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
string datapoint;
int crate, lv,icard;
dyn_errClass err;

//dpGet(\"Item.Crate:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", lv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=lv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate, icard); 

  if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            datapoint);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_textFieldInCB(string dp, float fNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}



// SimpleCtrlScript {EP_setBackColor}
// DP {Crate%02d.HVCard_0.HVccMask}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {Crate%02d.HVCard_0.HVccMask}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {less}
// Operant1 {1}
// Color1 {\\{204,51,51\\}}
// Operator2 {else}
// Operant2 {}
// Color2 {\\{102,204,102\\}}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string datapoint, datapoint2, datapoint3,datapoint4, datapoint5;
int crate, lv,icard, iVdd, iVcc,iVcsel,iVpin,i;
int doit;

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

  if( iNewValue != sTmp )
  {
    ChildPanelOn( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\",1,0 )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", lv);
dpGet(\"Crate.Numb:_original.._value\", crate);
icard=lv/4;
doit=1;



  sprintf(datapoint,\"Crate00.LV_card%02d.LVcaMask.Send:_original.._value\",icard);
//DebugN(\"icard \",icard,\"crate \",crate,\"datapoint \",datapoint,iNewValue);
  for (i=icard*4;i<=icard*4+3;i++)
  {   
   //   //DebugN(\"i \",i,\"icard \", icard,\"lv \",lv);
      sprintf(datapoint2,\"Crate%02d.Channel%02d.LVch_Vcc.Send:_original.._value\",crate, i); 
      dpGet(datapoint2, iVcc); 
      sprintf(datapoint3, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_original.._value\",crate, i); 
      dpGet(datapoint3, iVdd);
      sprintf(datapoint4,\"Crate%02d.Channel%02d.LVchVCSV.Send:_original.._value\",crate, i); 
      dpGet(datapoint4, iVcsel); 
      sprintf(datapoint5, \"Crate%02d.Channel%02d.LVchPINV.Send:_original.._value\",crate, i); 
      dpGet(datapoint5, iVpin);
      //DebugN(\"datapoint4\",datapoint4,\"iVpin\", iVcc,iVdd,iVcsel,iVpin);
//      if(iVcc!=0 || iVdd!=0 || iVcsel<0.05 || iVpin!=0)
//      {
//      doit=0;
//      }
  }
      if (doit==1)
        {
         dpSetWait(datapoint, iNewValue);
 //        //DebugN(\"if iNewValue\",iNewValue, \"iVdd\", iVdd, \"iVcc\", iVcc,iVcsel,iVpin);
        }
      else 
        {
         //EP_childPanelOn();
 //        //DebugN(\"else iNewValue\",iNewValue, \"iVdd\", iVdd, \"iVcc\", iVcc,iVcsel,iVpin);
         }
/*delay(3);
  for (i=icard*4;i<=icard*4+3;i++)
  {  
       dpSet(\"Crate%02d.Controller.CCchRead.Send:_original.._value\", i);
  }
  */
      err = getLastError();
      if (dynlen(err) > 0)
      errorDialog(err);
}


EP_childPanelOn()
{
  ChildPanelOn(\"/subpanels/ErrorMask1.pnl\",
      \"\",
      makeDynString(\"\"),1,0);
      return;
}
// SimpleCtrlScript {EP_textFieldOut}
// DP {Crate1.HV0.HVcoRamp}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 411
"TextField3"
""
1 1045 526 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
393 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 ""
518 459 582 485
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
string datapoint;
int crate, hv,icard;
dyn_errClass err;

//dpGet(\"Item.Crate:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\",crate);
icard=hv/8;
sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate, icard); 

  if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            datapoint);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_textFieldInCB(string dp, float fNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}



// SimpleCtrlScript {EP_setBackColor}
// DP {Crate%02d.HVCard_0.HVccMask}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {Crate%02d.HVCard_0.HVccMask}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {less}
// Operant1 {1}
// Color1 {\\{204,51,51\\}}
// Operator2 {else}
// Operant2 {}
// Color2 {\\{102,204,102\\}}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string datapoint, datapoint2, datapoint3,datapoint4, datapoint5;
int crate, hv,icard,i;
int doit,volt;


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

  if( iNewValue != sTmp )
  {
    ChildPanelOn( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\",1,0 )));
    return;
  }
dpGet(\"Crate.Numb:_original.._value\",crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/8;
doit=1;
sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,icard);
////DebugN(\"icard \",icard,\"crate \",crate,\"datapoint \",datapoint,iNewValue);
  for (i=icard*8;i<=icard*8+8;i++)
  {   
   sprintf(datapoint2,\"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate,i);
   dpGet(datapoint2,volt);
   //DebugN(\"why?\",datapoint2,volt);
      if(volt>10)
	  {
      doit=0;
      }
  }
      if (doit==1||iNewValue==255)
        {
         dpSetWait(datapoint, iNewValue);
 //        //DebugN(\"if iNewValue\",iNewValue, \"iVdd\", iVdd, \"iVcc\", iVcc,iVcsel,iVpin);
        }
      else 
        {
         //DebugN(\"Hei\");  
         ChildPanelOnCentral(\"realmask1.pnl\", \"realmask1\", \"\");
 //        //DebugN(\"else iNewValue\",iNewValue, \"iVdd\", iVdd, \"iVcc\", iVcc,iVcsel,iVpin);
         }
/*delay(3);
  for (i=icard*4;i<=icard*4+3;i++)
  {  
       dpSet(\"Crate%02d.Controller.CCchRead.Send:_original.._value\", i);
  }
  */
      err = getLastError();
      if (dynlen(err) > 0)
      errorDialog(err);
}



// SimpleCtrlScript {EP_textFieldOut}
// DP {Crate1.HV0.HVcoRamp}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

13 405
"HVcaStat_color"
""
1 654 406 E E E 1 E 1 E N "_3DText" E N {102,153,204} E E
 E E
387 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
652 404 676 428
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

EP_childPanelOn()
{
  ChildPanelOnCentral(\"subpanels/BinStatHVC.pnl\",
      \"\",
      makeDynString(\"\"));
}

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
13 404
"LVcaStat_color"
""
1 656 38 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
386 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
654 36 678 60
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

EP_childPanelOn()
{
//  ChildPanelOnCentral(\"subpanels/BinStatLVC.pnl\",
//     \"\",
//     makeDynString(\"\"));
       ChildPanelOnCentral(\"subpanels/BinStatcard.pnl\",
      \"\",
      makeDynString(\"\"));
}

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
14 480
"time_stamp1"
""
1 460 276 E E E 1 E 0 E N {255,0,0} E N {255,255,204} E E
 E E
455 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
458 274 672 301
3 "s" 0 0 0 0 0 0 
E
E
E
13 485
"Button6"
""
1 500 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
460 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 ""
498 498 522 522
T 
1
LANG:1 1 0
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x001) >> 0){  // on
 
  value=(value - 0x001);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x001);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x001) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 486
"Button7"
""
1 520 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
461 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 ""
518 498 542 522
T 
1
LANG:1 1 1
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x002) >> 0){  // on
 
  value=(value - 0x002);
//  value=0;
  dpSetWait(dpValue, value);
//  //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x002);
//    value=255 - 2;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+1;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x002) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 487
"Button8"
""
1 540 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
462 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 ""
538 498 562 522
T 
1
LANG:1 1 2
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x004) >> 0){  // on
 
  value=(value - 0x004);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x004);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+2;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x004) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 488
"Button9"
""
1 560 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
463 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 ""
558 498 582 522
T 
1
LANG:1 1 3
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x008) >> 0){  // on
 
  value=(value - 0x008);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x008);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+3;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x08) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 489
"Button10"
""
1 580 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
464 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 ""
578 498 602 522
T 
1
LANG:1 1 4
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x010) >> 0){  // on
 
  value=(value - 0x010);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x010);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+4;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x010) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 490
"Button11"
""
1 600 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
465 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 ""
598 498 622 522
T 
1
LANG:1 1 5
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x020) >> 0){  // on
 
  value=(value - 0x020);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x020);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+5;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x020) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 491
"Button12"
""
1 620 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
466 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 ""
618 498 642 522
T 
1
LANG:1 1 6
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x040) >> 0){  // on
 
  value=(value - 0x040);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value| 0x040);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+6;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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


EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x040) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 492
"Button13"
""
1 640 500 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
467 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 ""
638 498 662 522
T 
1
LANG:1 1 7
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

////DebugN(\"crate\", crate, \"channel\", channel);

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,card);

dpGet(dpValue, value);
  
////DebugN(\"value\", value);  

if ((value & 0x080) >> 0){  // on
 
  value=(value - 0x080);
//  value=0;
  dpSetWait(dpValue, value);
  
// //DebugN(\"0\", value, dpValue); 
    }
else {
    value=(value | 0x080);
  //  value=1;
    dpSetWait(dpValue,value);
//    //DebugN(\"1!\", value); 
     }
  
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}
                                
// SimpleCtrlScript {EP_setDP}
// DP1 {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E "// SimpleCtrlScriptStart {invalid}

main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


EP_textFieldInCB(string dp, int iNewValue)
{
  iNewValue = iNewValue/8;
   iNewValue = iNewValue*8+7;
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  EP_setBackColor();
}

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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



EP_setBackColor()
{
dyn_errClass err;
string dpCrate,dpChannel, dpValue, dpValueI;
int crate, channel, value, card;

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", channel);

dpCrate=\"Crate.Numb:_original.._value\";
dpChannel=\"HVch.Numb:_original.._value\";

card=channel/8;
sprintf(dpValue,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._value\",crate,card);
sprintf(dpValueI,\"Crate%02d.HV_card%02d.HVcaMask.Send:_online.._invalid\",crate,card);

  if( dpSubStr( dpValue, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            dpValue,
            dpValueI, 
            dpCrate,
            dpChannel);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpValue, int value, string dpInvalid, bool boInvalid, string dpCrate, int crate, string dpChannel, int channel)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((value & 0x080) >> 0)
    setValue(\"\", \"backCol\", \"STD_led_On\");
  else
    setValue(\"\", \"backCol\", \"Red\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.HV_card00.HVcaMask.Send}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {STD_led_On}
// Operator2 {else}
// Operant2 {}
// Color2 {Red}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0

13 512
"Button16"
""
1 546 13 E E E 1 E 1 E N "_3DText" E N {204,204,204} E E
 E E
483 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
544 11 568 35
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

EP_childPanelOn()
{
  ChildPanelOnCentral(\"subpanels/BinStatCC.pnl\",
      \"\",
      makeDynString(\"\"));
}

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E "main()
{
  EP_colorButtonIn();
}

EP_colorButtonIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint;
int hv,i;
int crate,count;

dpGet(\"Crate.Numb:_original.._value\", crate);

sprintf(datapoint, \"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
dpConnect(\"EP_colorButton\",datapoint);

  sprintf(datapoint,\"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
  dpConnect(\"EP_colorButton1\",datapoint);  
                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"colour\", \"_dpdoesnotexist\");
}

EP_colorButton(string dp, float fNewValue)
{ 
int crate;
int hv;
int iNewValue;
string dp1;

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(dp1, \"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
dpGet(dp1,fNewValue);

iNewValue = fNewValue;
iNewValue  = (0x0000ff00 &iNewValue)>>8; 

if(iNewValue &0x000000)
  {
  setValue(\"\", \"backCol\", \"Red\");
  }
else  {
  setValue(\"\", \"backCol\", \"Yellow\");  //green
  }
}

EP_colorButton1(string dp, float fNewValue)
{ 
int crate;
int hv;
int iNewValue;
string dp1;

dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(dp1, \"Crate%02d.Controller.CCchStat.Recv:_online.._value\",crate);
dpGet(dp1,fNewValue);

iNewValue = fNewValue;
iNewValue  = (0x0000ff00 &iNewValue)>>8; 

if(iNewValue &0x000000)
  {
  setValue(\"\", \"backCol\", \"Red\");
  }
  else
  {
  setValue(\"\", \"backCol\", \"Yellow\"); //green
  }
}

// SimpleCtrlScript {EP_colorButton1}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_colorButtonIn}
" 0

14 593
"LVchDTrp_set"
""
1 98 231 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
562 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 ""
96 229 150 255
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchDTrp\");
}" 0

14 594
"LVch_Vcc_set"
""
1 98 88 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
563 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 ""
96 86 150 112
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVch_Vcc\");
}" 0

14 595
"HVchRamp_set"
""
1 98 515 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
564 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 ""
96 513 192 539
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
string datapoint;
int crate, hv;
dyn_errClass err;

//dpGet(\"Item.Crate:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchRamp.Send:_online.._value\",crate, hv); 

  if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            datapoint);
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_textFieldInCB(string dp, float fNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}" 0

"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"HVchRamp\");
}" 0

14 596
"HVchVolt_set"
""
1 98 455 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
565 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 ""
96 453 192 479
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"HVchVolt\");
}" 0

14 597
"HVchITrp_set"
""
1 98 485 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
566 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 ""
96 483 192 509
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"HVchITrp\");
}" 0

13 598
"LVchStat_color"
""
1 411 38 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
567 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
409 36 433 60
T 
1
LANG:1 1 !
"main()
{
  ChildPanelOnCentral(\"subpanels/BinStat.pnl\", \"\", makeDynString(\"\"));
}" 0
 E E E
13 599
"HVchStat_color"
""
1 409 410 E E E 1 E 1 E N "_3DText" E N {102,153,204} E E
 E E
568 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
407 408 431 432
T 
1
LANG:1 1 !
"main()
{
  ChildPanelOnCentral(\"subpanels/BinStatHV.pnl\", \"\", makeDynString(\"\"));
}" 0
 E E E
14 600
"LVch_Vdd_set"
""
1 98 115 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
569 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 ""
96 113 150 139
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVch_Vdd\");
}
" 0

14 601
"LVchVCSV_set"
""
1 98 142 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
570 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 ""
96 140 150 166
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchVCSV\");
}" 0

14 602
"LVchPINV_set"
""
1 98 169 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
571 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 ""
96 167 150 193
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchPINV\");
}" 0

14 603
"LVchCTrp_set"
""
1 98 206 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
572 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 ""
96 204 150 230
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchCTrp\");
}" 0

14 604
"LVchTLim_set"
""
1 98 265 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
573 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 ""
96 263 150 289
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchTLim\");
}" 0

14 605
"LVchTTrp_set"
""
1 98 290 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
574 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 ""
96 288 150 314
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchTTrp\");
}" 0

14 606
"LVchCLKS_set"
""
1 98 325 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
575 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 ""
96 323 150 349
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchCLKS\");
}" 0

14 607
"LVchCLKR_set"
""
1 98 352 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
576 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 ""
96 350 150 376
3 "s" 0 0 0 0 0 0 
E
E
"main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchCLKR\");
}" 0

14 608
"LVchVOut_set"
""
1 98 377 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
577 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 ""
96 375 150 401
3 "s" 0 0 0 0 0 0 
E
E
"// SimpleCtrlScriptStart {invalid}
main()
{
  //this function is defined in panel general part
  setParameterSendValue(\"LVchVOut\");
}" 0

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