V 10
1
LANG:1 6 Values
PANEL,387 79 837 651 N "_3DFace" 0
EEE E E 1 -1 -1 0  30 40
"" 0 1
EE 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 0
"Text2"
""
1 460 35 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 462 37 678 418
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 0 
2 386
"Text105"
""
1 460 330 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
370 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 332 678 418
1 2 0 "s" 0 0 0 65 0 0  462 332
 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 10 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 12 678 33
1 2 0 "s" 0 0 0 65 0 0  462 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 7 LV CARD
2 381
"Text82"
""
1 10 35 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
365 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 458 418
1 2 0 "s" 0 0 0 65 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 0 
2 24
"LVchannels"
""
1 10 10 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
24 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 12 458 33
1 2 0 "s" 0 0 0 65 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 10 LV CHANNEL
2 29
"Text9"
""
1 310 79 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
29 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;
crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchStat.Recv:_original.._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.Channel%02d.LVchStat.Recv:_original.._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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchStat.Recv:_original.._value\",crate, hv);

dpGet(dp1,fNewValue);
//DebugN(\"datapoint\",dp1,fNewValue);
fNewValue=fNewValue;

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchStat.Recv:_original.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=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
 E 0 1 1 0 1 E U  1 E 312 81 368 97
1 2 0 "s" 0 0 0 64 0 0  312 81
 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 LVchStat
2 62
"Text17"
""
1 310 109 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
60 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,try;
int crate,count;
string channel;
crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vcc.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.Channel%02d.LVch_Vcc.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//DebugN(\"READOUT Vcc\",fNewValue);
//dpGet(datapoint,try);
//DebugN(\"datapoint\",datapoint,try);
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 111 368 127
1 2 0 "s" 0 0 0 64 0 0  312 111
 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 63
"Text18"
""
1 380 110 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
61 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;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
sprintf(datapoint, \"Crate%02d.Channel%02d.LVps_Vcc.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.Channel%02d.LVps_Vcc.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVps_Vcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

//sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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


crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVps_Vcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//DebugN(\" Vcc\", fNewValue);

//sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 382 112 438 128
1 2 0 "s" 0 0 0 64 0 0  382 112
 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 64
"Text19"
""
1 310 379 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
62 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVretVcc.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.Channel%02d.LVretVcc.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVretVcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVretVcc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 381 368 397
1 2 0 "s" 0 0 0 64 0 0  312 381
 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 65
"Text20"
""
1 310 259 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
63 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Icc.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.Channel%02d.LVch_Icc.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Icc.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Icc.Recv:_online.._value\",crate, hv);
dpGet(dp1,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
 E 0 1 1 0 1 E U  1 E 312 261 368 277
1 2 0 "s" 0 0 0 64 0 0  312 261
 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 66
"Text21"
""
1 310 139 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
64 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;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vdd.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.Channel%02d.LVch_Vdd.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 141 368 157
1 2 0 "s" 0 0 0 64 0 0  312 141
 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 67
"Text22"
""
1 380 140 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
65 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVps_Vdd.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.Channel%02d.LVps_Vdd.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;
string dp1;
string sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVps_Vdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//DebugN(\" Vdd\", fNewValue);
//sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVps_Vdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//DebugN(\" Vdd\", fNewValue);
//sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 382 142 438 158
1 2 0 "s" 0 0 0 64 0 0  382 142
 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 68
"Text23"
""
1 310 349 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
66 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVretVdd.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.Channel%02d.LVretVdd.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVretVdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVretVdd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 351 368 367
1 2 0 "s" 0 0 0 64 0 0  312 351
 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
2 69
"Text24"
""
1 310 229 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
67 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Idd.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.Channel%02d.LVch_Idd.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Idd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Idd.Recv:_online.._value\",crate, hv);
dpGet(dp1,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
 E 0 1 1 0 1 E U  1 E 312 231 368 247
1 2 0 "s" 0 0 0 64 0 0  312 231
 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 70
"Text25"
""
1 310 169 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
68 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSV.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.Channel%02d.LVchVCSV.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSV.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSV.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 171 368 187
1 2 0 "s" 0 0 0 64 0 0  312 171
 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 71
"Text26"
""
1 380 170 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
69 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;

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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSI.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.Channel%02d.LVchVCSI.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSI.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSI.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 382 172 438 188
1 2 0 "s" 0 0 0 64 0 0  382 172
 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 72
"Text27"
""
1 310 199 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
70 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINV.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.Channel%02d.LVchPINV.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINV.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINV.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 201 368 217
1 2 0 "s" 0 0 0 64 0 0  312 201
 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 73
"Text28"
""
1 380 200 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
71 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINI.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.Channel%02d.LVchPINI.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate, hv);
dpGet(dp1,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
 E 0 1 1 0 1 E U  1 E 382 202 438 218
1 2 0 "s" 0 0 0 64 0 0  382 202
 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 74
"Text29"
""
1 310 289 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
72 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.MOch_Tm0.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.Channel%02d.MOch_Tm0.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;

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

//DebugN(\"row T\",t);
fNewValue=t;
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;

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


//DebugN(\"row T\",t);
/* Jan's formula
a=3.4350;
b=3.3557;
x=log(fNewValue/800.+a*b);
t=a*1000./x;
t = t-273.;
*/

fNewValue=t;



sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 312 291 368 307
1 2 0 "s" 0 0 0 64 0 0  312 291
 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 75
"Text30"
""
1 310 319 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
73 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.MOch_Tm1.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.Channel%02d.MOch_Tm1.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;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.MOch_Tm1.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;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.MOch_Tm1.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
 E 0 1 1 0 1 E U  1 E 312 321 368 337
1 2 0 "s" 0 0 0 64 0 0  312 321
 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 80
"Text35"
""
1 160 80 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
78 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;

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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vcc.Send:_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.Channel%02d.LVch_Vcc.Send:_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;
string dp1,sTmp;


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

sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vcc.Send:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue ); 

}

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

crate=0;

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

sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vcc.Send:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );


}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 82 218 98
1 2 0 "s" 0 0 0 64 0 0  162 82
 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 LVco_Vcc
2 81
"Text36"
""
1 160 110 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
79 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;


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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_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.Channel%02d.LVch_Vdd.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue ); 
}

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

 crate=0;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_online.._value\",crate, hv);
 dpGet(dp1,fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 112 218 128
1 2 0 "s" 0 0 0 64 0 0  162 112
 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 LVco_Vdd
2 82
"Text37"
""
1 160 140 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
80 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;

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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSV.Send:_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.Channel%02d.LVchVCSV.Send:_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;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSV.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue ); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchVCSV.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 142 218 158
1 2 0 "s" 0 0 0 64 0 0  162 142
 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 LVcoVCSV
2 83
"Text38"
""
1 160 170 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
81 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINV.Send:_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.Channel%02d.LVchPINV.Send:_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;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINV.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINV.Send:_online.._value\",crate, hv);
 dpGet(dp1, 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
 E 0 1 1 0 1 E U  1 E 162 172 218 188
1 2 0 "s" 0 0 0 64 0 0  162 172
 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 LVcoPINV
2 84
"Text39"
""
1 160 200 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
82 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchDTrp.Send:_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.Channel%02d.LVchDTrp.Send:_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;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchDTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchDTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}
// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 202 218 218
1 2 0 "s" 0 0 0 64 0 0  162 202
 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 LVcoDTrp
2 85
"Text40"
""
1 160 230 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
83 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTrp.Send:_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.Channel%02d.LVchCTrp.Send:_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;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchCTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchCTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);

 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 232 218 248
1 2 0 "s" 0 0 0 64 0 0  162 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 LVcoCTrp
2 86
"Text41"
""
1 160 260 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
84 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTLim.Send:_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.Channel%02d.LVchTLim.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchTLim.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchTLim.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 262 218 278
1 2 0 "s" 0 0 0 64 0 0  162 262
 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 LVcoTLim
2 87
"Text42"
""
1 160 290 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
85 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTTrp.Send:_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.Channel%02d.LVchTTrp.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchTTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchTTrp.Send:_online.._value\",crate, hv);
 dpGet(dp1, 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
 E 0 1 1 0 1 E U  1 E 162 292 218 308
1 2 0 "s" 0 0 0 64 0 0  162 292
 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 LVcoTTrp
2 88
"Text43"
""
1 160 320 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
86 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKS.Send:_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.Channel%02d.LVchCLKS.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchCLKS.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.LVchCLKS.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 322 218 338
1 2 0 "s" 0 0 0 64 0 0  162 322
 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 LVcoCLKS
2 89
"Text44"
""
1 160 350 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
87 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKR.Send:_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.Channel%02d.LVchCLKR.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchCLKR.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

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

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchCLKR.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 352 218 368
1 2 0 "s" 0 0 0 64 0 0  162 352
 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 LVcoCLKR
2 90
"Text45"
""
1 160 380 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
88 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVOut.Send:_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.Channel%02d.LVchVOut.Send:_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;
string dp1,sTmp;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVOut.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

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

 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.LVchVOut.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 162 382 218 398
1 2 0 "s" 0 0 0 64 0 0  162 382
 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 LVcoVOut
2 107
"Text55"
""
1 30 40 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
105 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 32 42 102 58
0 2 0 "s" 0 0 0 64 0 0  32 42
 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 110
"Text57"
""
1 20 80 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
108 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 82 68 95
0 2 0 "s" 0 0 0 64 0 0  22 82
 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 Vcc
2 112
"Text58"
""
1 20 110 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
110 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 112 68 125
0 2 0 "s" 0 0 0 64 0 0  22 112
 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 Vdd
2 113
"Text59"
""
1 20 140 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
111 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 142 78 158
0 2 0 "s" 0 0 0 64 0 0  22 142
 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 VCSEL V
2 116
"Text60"
""
1 20 170 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
114 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 172 78 186
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 8 PIN Bias
2 117
"Text61"
""
1 20 200 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
115 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 202 88 218
0 2 0 "s" 0 0 0 64 0 0  22 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 13 Idd Trip (ms)
2 120
"Text62"
""
1 20 230 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
118 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 232 88 248
0 2 0 "s" 0 0 0 64 0 0  22 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 18 Icc Trip (ms) Trip
2 121
"Text63"
""
1 20 260 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
119 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 262 88 278
0 2 0 "s" 0 0 0 64 0 0  22 262
 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 T Warning
2 124
"Text64"
""
1 20 290 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
122 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 292 68 305
0 2 0 "s" 0 0 0 64 0 0  22 292
 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 T Trip
2 125
"Text65"
""
1 20 320 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
123 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 322 88 338
0 2 0 "s" 0 0 0 64 0 0  22 322
 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 128
"Text66"
""
1 20 350 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
126 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 352 88 368
0 2 0 "s" 0 0 0 64 0 0  22 352
 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 Res
2 129
"Text67"
""
1 20 380 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
127 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 382 68 395
0 2 0 "s" 0 0 0 64 0 0  22 382
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Out On
2 133
"Text69"
""
1 229 46 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
131 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 231 48 317 62
0 2 0 "s" 0 0 0 64 0 0  231 48
 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 134
"Text70"
""
1 230 79 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 232 81 278 94
0 2 0 "s" 0 0 0 64 0 0  232 81
 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 135
"Text71"
""
1 230 109 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
133 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 232 111 308 127
0 2 0 "s" 0 0 0 64 0 0  232 111
 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 Vcc Mod / PS
2 136
"Text72"
""
1 230 139 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
134 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 232 141 308 157
0 2 0 "s" 0 0 0 64 0 0  232 141
 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 Vdd Mod / PS
2 137
"Text73"
""
1 230 169 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
135 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 232 171 298 187
0 2 0 "s" 0 0 0 64 0 0  232 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 11 VCSEL V / I
2 138
"Text74"
""
1 230 199 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
136 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 232 201 308 217
0 2 0 "s" 0 0 0 64 0 0  232 201
 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 14 PIN Bias V / I
2 139
"Text75"
""
1 242 230 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
137 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 244 232 290 245
0 2 0 "s" 0 0 0 64 0 0  244 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 1  
2 140
"Text76"
""
1 230 259 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
138 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 232 261 278 274
0 2 0 "s" 0 0 0 64 0 0  232 261
 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 Icc 
2 141
"Text77"
""
1 230 289 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
139 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 232 291 298 307
0 2 0 "s" 0 0 0 64 0 0  232 291
 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 T Link 0
2 142
"Text78"
""
1 230 319 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
140 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 232 321 278 334
0 2 0 "s" 0 0 0 64 0 0  232 321
 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 T Link 1
2 143
"Text79"
""
1 230 379 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
141 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 232 381 298 397
0 2 0 "s" 0 0 0 64 0 0  232 381
 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 Vcc Return
2 144
"Text80"
""
1 230 349 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
142 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 232 351 298 367
0 2 0 "s" 0 0 0 64 0 0  232 351
 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 Vdd Return
2 152
"Text88"
""
1 230 229 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
150 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 232 231 278 244
0 2 0 "s" 0 0 0 64 0 0  232 231
 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 Idd 
2 208
"Text3"
""
1 460 420 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 462 422 678 608
1 2 0 "s" 0 0 0 65 0 0  462 422
 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 209
"Text5"
""
1 10 440 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
202 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 442 458 608
1 2 0 "s" 0 0 0 65 0 0  12 442
 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 210
"Text15"
""
1 594 500 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;
int crate,count;
string channel;



crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/8;
sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaMask.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/8;
  sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.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);
crate=0;
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaMask.Send:_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;

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/8;
sprintf(dp1, \"Crate%02d.HV_card%02d.HVcaMask.Send:_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 596 502 652 518
1 2 0 "s" 0 0 0 64 0 0  596 502
 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 483 50 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 485 52 551 66
0 2 0 "s" 0 0 0 64 0 0  485 52
 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 483 118 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 485 120 523 134
0 2 0 "s" 0 0 0 64 0 0  485 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 4 Trip
2 213
"Text54"
""
1 483 86 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 485 88 525 100
0 2 0 "s" 0 0 0 64 0 0  485 88
 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 155 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 157 570 173
0 2 0 "s" 0 0 0 64 0 0  482 157
 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 215
"Text83"
""
1 480 180 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
208 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 182 528 195
0 2 0 "s" 0 0 0 64 0 0  482 182
 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 216
"Text84"
""
1 480 210 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 212 558 228
0 2 0 "s" 0 0 0 64 0 0  482 212
 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 240 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 242 548 258
0 2 0 "s" 0 0 0 64 0 0  482 242
 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 470 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 472 548 488
0 2 0 "s" 0 0 0 64 0 0  482 472
 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 504 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 506 528 519
0 2 0 "s" 0 0 0 64 0 0  482 506
 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 220
"Text95"
""
1 480 540 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
213 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 542 568 558
0 2 0 "s" 0 0 0 64 0 0  482 542
 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 221
"Text100"
""
1 480 570 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 482 572 538 588
0 2 0 "s" 0 0 0 64 0 0  482 572
 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 222
"Text33"
""
1 597 82 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;
int crate,count;
string channel;



crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaMask.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.LVcaMask.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);
crate=0;
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaMask.Send:_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;

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaMask.Send:_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 599 84 655 100
1 2 0 "s" 0 0 0 64 0 0  599 84
 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
"Text46"
""
1 597 114 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;



crate=0;
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);
crate=0;
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;

crate=0;

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 599 116 655 132
1 2 0 "s" 0 0 0 64 0 0  599 116
 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 224
"Text51"
""
1 594 174 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
217 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;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaStat.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/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaStat.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);
crate=0;
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaStat.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;

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaStat.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 596 176 652 192
1 2 0 "s" 0 0 0 64 0 0  596 176
 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 LVchStat
2 225
"Text6"
""
1 594 204 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;
int crate,count;
string channel;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaTemp.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/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaTemp.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);
crate=0;
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaTemp.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;

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaTemp.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 596 206 652 222
1 2 0 "s" 0 0 0 64 0 0  596 206
 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
"Text7"
""
1 594 234 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;
int crate,count;
string channel;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"Crate%02d.LV_card%02d.LVcaPowr.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/4;
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaPowr.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);
crate=0;
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaPowr.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;

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"Crate%02d.LV_card%02d.LVcaPowr.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 596 236 652 252
1 2 0 "s" 0 0 0 64 0 0  596 236
 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 227
"Text8"
""
1 594 570 E E E 1 E 1 E N {0,0,0} E N {153,204,255} 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;



crate=0;
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);
crate=0;
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;

crate=0;

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 596 572 652 588
1 2 0 "s" 0 0 0 64 0 0  596 572
 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 HVchStat
2 280
"nb0"
""
1 410 448 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
272 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 450 434 466
0 2 0 "s" 0 0 0 64 0 0  412 450
 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 nb0
2 282
"Text31"
""
1 410 468 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
274 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 470 434 488
0 2 0 "s" 0 0 0 64 0 0  412 470
 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 nb0
2 283
"Text32"
""
1 410 488 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
275 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 490 440 506
0 2 0 "s" 0 0 0 64 0 0  412 490
 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 nb0
2 284
"Text34"
""
1 410 508 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
276 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 510 438 526
0 2 0 "s" 0 0 0 64 0 0  412 510
 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 nb0
2 285
"Text47"
""
1 410 528 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
277 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 530 434 546
0 2 0 "s" 0 0 0 64 0 0  412 530
 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 nb0
2 286
"Text48"
""
1 410 548 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
278 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 550 432 566
0 2 0 "s" 0 0 0 64 0 0  412 550
 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 nb0
2 287
"Text49"
""
1 410 568 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
279 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 570 434 586
0 2 0 "s" 0 0 0 64 0 0  412 570
 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 nb0
2 288
"Text53"
""
1 410 588 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
280 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 412 590 436 606
0 2 0 "s" 0 0 0 64 0 0  412 590
 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 nb0
2 294
"Text11"
""
1 380 280 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
285 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 382 282 404 298
0 2 0 "s" 0 0 0 64 0 0  382 282
 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 nb0
2 299
"Text87"
""
1 380 301 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
290 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 382 303 404 319
0 2 0 "s" 0 0 0 64 0 0  382 303
 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 nb0
2 301
"Text101"
""
1 380 322 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
292 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 382 324 404 340
0 2 0 "s" 0 0 0 64 0 0  382 324
 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 nb0
2 303
"Text102"
""
1 380 343 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
294 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N {153,204,255}
"// 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_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 0 E U  1 E 382 345 404 361
0 2 0 "s" 0 0 0 64 0 0  382 345
 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 nb0
2 304
"lvcard"
""
1 607 11 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 609 13 665 28
0 2 0 "s" 0 0 0 64 0 0  609 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 7 lv card
2 19
"Text1"
""
1 306 490 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
19 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;
int crate,count;
string channel;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchStat.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.Channel%02d.HVchStat.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;
string dp1;


dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.HVchStat.Recv:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchStat.Recv:_online.._value\",crate, hv);
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 308 492 362 511
1 2 0 "s" 0 0 0 64 0 0  308 492
 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 HVchStat
2 44
"Text10"
""
1 306 521 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
44 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;
int crate,count;
string channel;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchCurr.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.Channel%02d.HVchCurr.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;
string dp1;


dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.HVchCurr.Recv:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchCurr.Recv:_online.._value\",crate, hv);
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 308 523 362 541
1 2 0 "s" 0 0 0 64 0 0  308 523
 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 46
"Text12"
""
1 306 551 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
46 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;
crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchVolt.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.Channel%02d.HVchVolt.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;
string dp1;



dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
fNewValue = fNewValue ;
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue = 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 308 553 362 571
1 2 0 "s" 0 0 0 64 0 0  308 553
 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 160
"Text96"
""
1 229 460 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
158 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 231 462 327 478
0 2 0 "s" 0 0 0 64 0 0  231 462
 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 161
"Text97"
""
1 230 493 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
159 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 232 495 278 508
0 2 0 "s" 0 0 0 64 0 0  232 495
 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 162
"Text98"
""
1 230 523 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
160 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 232 525 278 538
0 2 0 "s" 0 0 0 64 0 0  232 525
 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 163
"Text99"
""
1 230 553 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
161 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 232 555 278 571
0 2 0 "s" 0 0 0 64 0 0  232 555
 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 Voltage
2 53
"Text13"
""
1 160 553 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
53 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;



 crate=0;
 dpGet(\"HVch.Numb:_original.._value\", hv);
 channel=\"HVch.Numb:_original.._value\";
 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\",channel);
 count=47;
 for(i=0; i<= count;i++)
   {
   sprintf(datapoint,\"Crate%02d.Channel%02d.HVchRamp.Send:_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;
string dp1;


 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"Crate%02d.Channel%02d.HVchRamp.Send:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

 crate=0;

 dpGet(\"HVch.Numb:_original.._value\", hv);
 sprintf(dp1, \"Crate%02d.Channel%02d.HVchRamp.Send:_online.._value\",crate, hv);
 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 162 555 216 571
1 2 0 "s" 0 0 0 64 0 0  162 555
 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 HVcoRamp
2 54
"Text14"
""
1 160 523 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
54 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.HVchITrp.Send:_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.Channel%02d.HVchITrp.Send:_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;
string dp1;


dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(dp1, \"Crate%02d.Channel%02d.HVchITrp.Send:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchITrp.Send:_online.._value\",crate, hv);
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 162 525 216 541
1 2 0 "s" 0 0 0 64 0 0  162 525
 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 HVcoITrp
2 56
"Text16"
""
1 160 493 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
56 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.HVchVolt.Send:_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.Channel%02d.HVchVolt.Send:_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;
string dp1;


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

sprintf(dp1, \"Crate%02d.Channel%02d.HVchVolt.Send:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

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

sprintf(dp1, \"Crate%02d.Channel%02d.HVchVolt.Send:_online.._value\",crate, hv);
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 162 495 216 511
1 2 0 "s" 0 0 0 64 0 0  162 495
 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 HVcoVolt
2 155
"Text91"
""
1 20 460 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
153 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 462 92 478
0 2 0 "s" 0 0 0 64 0 0  22 462
 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 156
"Text92"
""
1 20 490 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
154 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 492 68 518
0 2 0 "s" 0 0 0 64 0 0  22 492
 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 Voltage
2 157
"Text93"
""
1 20 520 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
155 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 522 78 538
0 2 0 "s" 0 0 0 64 0 0  22 522
 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 Curr Trip
2 158
"Text94"
""
1 20 550 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
156 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 552 68 565
0 2 0 "s" 0 0 0 64 0 0  22 552
 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 364
"Text4"
""
1 289 11 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
354 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)
{
  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 291 13 377 29
0 2 0 "s" 0 0 0 64 0 0  291 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 10 lv channel
2 383
"Text81"
""
1 10 420 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
367 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 422 458 443
1 2 0 "s" 0 0 0 65 0 0  12 422
 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 11 HV CHANNELS
2 365
"Text56"
""
1 296 421 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
354 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)
{
  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 298 423 384 439
0 2 0 "s" 0 0 0 64 0 0  298 423
 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 384
"Text103"
""
1 460 420 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 462 422 678 443
1 2 0 "s" 0 0 0 65 0 0  462 422
 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 275
"hvcard"
""
1 607 421 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 609 423 675 439
0 2 0 "s" 0 0 0 64 0 0  609 423
 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 460 10 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 462 12 678 33
1 2 0 "s" 0 0 0 65 0 0  462 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 7 LV CARD
2 387
"Text106"
""
1 460 330 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
371 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 332 678 353
1 2 0 "s" 0 0 0 65 0 0  462 332
 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 4 ELMB
2 389
"Text108"
""
1 610 370 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
373 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;

  if( dpSubStr( \"SCTmops1:Crate00.Controller.NMT.Recv:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTmops1:Crate00.Controller.NMT.Recv:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_textFieldInCB(string dp, int iNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, 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 {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 612 372 668 388
1 2 0 "s" 0 0 0 64 0 0  612 372
 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 10 ELMBstatus
2 391
"Text109"
""
1 470 370 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
375 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 472 372 548 388
0 2 0 "s" 0 0 0 64 0 0  472 372
 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 CC status
7 393
"Ellipse1"
""
1 440.5 250.5 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
376 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;



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

sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINI.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.Channel%02d.LVchPINI.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;
string dp1,sTmp;

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);

sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Crate00.Channel00.LVchStat.Recv:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTmops1:Crate00.Channel00.LVchStat.Recv:_online.._value\",
            \"SCTmops1:Crate00.Channel00.LVchStat.Recv:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (iNewValue == 1)
    setValue(\"\", \"backCol\", \"Black\");
  else
    setValue(\"\", \"backCol\", \"Black\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.Channel00.LVchStat.Recv}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {SCTmops1:Crate00.Channel00.LVchStat.Recv}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {equal}
// Operant1 {1}
// Color1 {Black}
// Operator2 {else}
// Operant2 {}
// Color2 {Black}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E 1.166666666666667 0 1.166666666666667  -73.9166666666667 -42.25000000000002  1 E 443.5 253.5 3 3
7 398
"Ellipse5"
""
1 440.5 266.5 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
380 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E 1.166666666666667 0 1.166666666666667  -73.9166666666667 -44.91666666666669  1 E 443.5 269.5 3 3
7 399
"Ellipse6"
""
1 440.5 280.5 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
381 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E 1.166666666666667 0 1.166666666666667  -73.9166666666667 -47.25000000000002  1 E 443.5 283.5 3 3
7 400
"Ellipse7"
""
1 440.5 294.5 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
382 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E 1.166666666666667 0 1.166666666666667  -73.9166666666667 -49.58333333333336  1 E 443.5 297.5 3 3
7 401
"Ellipse8"
""
1 441.5 308.5 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
383 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E 1.166666666666667 0 1.166666666666667  -74.08333333333337 -51.91666666666669  1 E 444.5 311.5 3 3
14 180
"TextField8"
""
1 90 80 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
176 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 ""
88 78 152 104
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vcc.Send:_original.._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)
{
string sTmp;

dpGet(dp, fNewValue);

sprintf(sTmp,\"%.1f\",fNewValue);
setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vcc.Send:_original.._value\",crate, hv); 
//iNewValue=fNewValue*50;
dpSetWait(datapoint, fNewValue);
  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 181
"TextField9"
""
1 90 110 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
177 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 ""
88 108 152 134
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);
 crate=0;
 sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);
 
 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
 
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"HVch.Numb:_original.._value\", hv);
  crate=0;
  sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vdd.Send:_original.._value\",crate, hv); 
 
  dpSetWait(datapoint, fNewValue);
  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 182
"TextField10"
""
1 90 290 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
178 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 ""
88 288 152 314
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTTrp.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTTrp.Send:_original.._value\",crate, hv); 
 
 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 183
"TextField11"
""
1 90 260 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
179 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 ""
88 258 152 284
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTLim.Send:_original.._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)
{
 string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue); 
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTLim.Send:_original.._value\",crate, hv); 
 
  dpSetWait(datapoint, fNewValue);
  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 184
"TextField12"
""
1 90 230 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
180 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 ""
88 228 152 254
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTrp.Send:_original.._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)
{
 string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}

/*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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTr.Send:_original.._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)
{
 string sTmp;

 dpGet(dp, fNewValue);
 fNewValue=fNewValue*2;
 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}
*/" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;


  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTrp.Send:_original.._value\",crate, hv); 
 
 dpSetWait(datapoint, fNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

/* main()
{
  EP_textFieldOut();
}

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTrp.Send:_original.._value\",crate, hv); 
 iNewValue=fNewValue/2;
  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 185
"TextField13"
""
1 90 200 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
181 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 ""
88 198 152 224
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchDTrp.Send:_original.._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)
{
 string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;


  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchDTrp.Send:_original.._value\",crate, hv); 

 dpSetWait(datapoint, fNewValue);
  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 186
"TextField14"
""
1 90 170 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
182 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 ""
88 168 152 194
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINV.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINV.Send:_original.._value\",crate, hv); 

 dpSetWait(datapoint, fNewValue);
 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 187
"TextField15"
""
1 90 140 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
183 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 ""
88 138 152 164
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSV.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);

 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSV.Send:_original.._value\",crate, hv); 

  dpSetWait(datapoint, fNewValue);
  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 188
"TextField16"
""
1 90 380 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
184 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 ""
88 378 152 404
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVOut.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue); 
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVOut.Send:_original.._value\",crate, hv); 
 iNewValue=fNewValue;
   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 189
"TextField17"
""
1 90 350 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
185 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 ""
88 348 152 374
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKR.Send:_original.._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)
{
string sTmp;

 dpGet(dp, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
 }" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
 if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"HVch.Numb:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKR.Send:_original.._value\",crate, hv); 
 iNewValue=fNewValue;
  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 190
"TextField18"
""
1 90 320 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
186 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 ""
88 318 152 344
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKS.Send:_original.._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)
{
 string sTmp;

 dpGet(dp, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%.1f\",fNewValue);
 setValue(\"\", \"text\", sTmp );
}" 0

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

EP_textFieldOut()
{
int iNewValue;
float fNewValue;
dyn_errClass err;
string sTmp,ssTmp;
string datapoint;
int crate, hv;

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
 dpGet(\"HVch.Numb:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKS.Send:_original.._value\",crate, hv); 
 iNewValue=fNewValue;
 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 231
"TextField3"
""
1 524 500 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
224 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 ""
522 498 586 524
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);
crate=0;
icard=hv/8;
sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaMask.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)
{
  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;
int crate, hv,icard, iRamp, iVolt, i;
int doit;

  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);
crate=0;
icard=hv/8;
doit=1;


  sprintf(datapoint, \"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,icard);
  for (i=icard*8;i<=icard*8+7;i++)
  {   
      sprintf(datapoint2, \"Crate%02d.Channel%02d.HVchRamp.Send:_original.._value\",crate, i); 
      dpGet(datapoint2, iRamp);
      sprintf(datapoint3, \"Crate%02d.Channel%02d.HVchVolt.Send:_original.._value\",crate, i); 
      dpGet(datapoint3, iVolt);
      if(iRamp==0 || iVolt!=0)
      {
      doit=0;
      }
  }
      if (doit==1)
        {
         dpSetWait(datapoint, iNewValue);
//         DebugN(\"if iNewValue\",iNewValue, \"iVolt\", iVolt, \"iRamp\", iRamp);
        }
      else 
        {
         EP_childPanelOn();
 //        DebugN(\"else iNewValue\",iNewValue, \"iVolt\", iVolt, \"iRamp\", iRamp);
         }

// Read the new values for the mask
/* delay(5);
  for (i=icard*8;i<=icard*8+7;i++)
  {  
       dpSet(\"Crate%02d.Controller.CCchRead.Send:_original.._value\", i+100);
  }
  */
   err = getLastError();
      if (dynlen(err) > 0)
      errorDialog(err);
}


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

14 232
"TextField6"
""
1 527 114 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 ""
525 112 589 138
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);
crate=0;
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);
crate=0;
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

13 234
"Button4"
""
1 500 264 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
227 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
498 262 572 296
T 
1
LANG:1 4 SEND
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv,icard,i;
dyn_int slot;
 
  slot=makeDynString(0,2,3,5,6,8,9,11,12,14,15,17);
  dpGet(\"HVch.Numb:_original.._value\", lv);
  icard=lv/4+1;
  i=200+slot[icard];
  sprintf(\"Crate%02d.Controller.CCch_Set.Send:_original.._value\", i);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {Crate%02d.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
// err = getLastError();
  //if (dynlen(err) > 0)
  //  errorDialog(err);" 0
 E E E
13 235
"ReadCard"
""
1 580 264 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
228 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
578 262 652 296
T 
1
LANG:1 4 READ
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv,icard,i, slot;
dyn_int slotslv;
string datapoint; 
 
  slotslv=makeDynString(0,2,3,5,6,8,9,11,12,14,15,17);
  dpGet(\"HVch.Numb:_original.._value\", lv);
  icard=lv/4;
  slot = slotslv[icard + 1] + 200;
  dpSetWait(\"Crate00.Controller.CCchRead.Send:_original.._value\",slot);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


// SimpleCtrlScript {EP_setDP}
// DP1 {Crate%02d.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 289
"TextField1"
""
1 527 82 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 ""
525 80 589 106
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);
crate=0;
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);
crate=0;
icard=lv/4;
doit=1;

//DebugN(\"first\");
  sprintf(datapoint,\"Crate%02d.LV_card%02d.LVcaMask.Send:_original.._value\",crate,icard);
  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 || 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);
}
// SimpleCtrlScript {EP_textFieldOut}
// DP {Crate1.HV0.HVcoRamp}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 58
"TextField2"
""
1 90 553 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
57 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 ""
88 551 152 577
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);
crate=0;
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

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

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

  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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchRamp.Send:_original.._value\",crate, hv); 
  dpSet(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 60
"TextField4"
""
1 90 493 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
59 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 ""
88 491 152 517
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchVolt.Send:_original.._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

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

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

  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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchVolt.Send:_original.._value\",crate, hv); 
  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 61
"TextField5"
""
1 90 523 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
60 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 ""
88 521 152 547
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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchITrp.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

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

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

  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);
crate=0;
sprintf(datapoint, \"Crate%02d.Channel%02d.HVchITrp.Send:_original.._value\",crate, hv); 
  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

13 376
"Button6"
""
1 594 460 E E E 1 E 1 E N {255,255,255} E N {0,0,255} E E
 E E
362 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
592 458 666 492
T 
1
LANG:1 4 SEND
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int hv,icard,i;
dyn_int slot;

  slot=makeDynString(1,4,7,10,13,16);
  //Array starts with 1
  dpGet(\"HVch.Numb:_original.._value\", hv);
  icard=hv/8+1;
  i=200+slot[icard];
  dpSet(\"Crate%02d.Controller.CCch_Set.Send:_original.._value\", i);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {Crate%02d.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
13 378
"Button8"
""
1 594 530 E E E 1 E 1 E N {255,255,255} E N {0,0,255} E E
 E E
362 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
592 528 666 562
T 
1
LANG:1 4 READ
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int hv,icard,i;
dyn_int slot;

  slot=makeDynString(1,4,7,10,13,16);
  //Array starts with 1
  dpGet(\"HVch.Numb:_original.._value\", hv);
  icard=hv/8+1;
  i=200+slot[icard];
  //dpSet(\"Crate%02d.Controller.CCchRead.Send:_original.._value\", i);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {Crate%02d.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 392
"TextField7"
""
1 540 370 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
376 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
538 368 602 394
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);
crate=0;
icard=hv/4;
sprintf(datapoint, \"SCTmops1:Crate00.Controller.NMT.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)
{
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;

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

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }

  dpSetWait(\"SCTmops1:Crate00.Controller.NMT.Send:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Controller.NMT}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 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