V 10
1
LANG:1 6 Values
PANEL,464 112 702 563 N "_3DFace" 0
"main()
{
/*
int i;
string datapoint;
for(i=0;i<=47;i++)
{
sprintf(datapoint,\"Crate00.Channel%02d.HVchVolt.Recv:_original.._value\",i);
dpSet(datapoint,0);
}
*/
}" 0
EE E E 1 -1 -1 0  30 40
"" 0 1
E"EP_childPanelOn()
{
 ChildPanelOnCentralModal(\"subpanels/ErrorMask.pnl\",\"\",makeDynString(\"\"));
}" 0
 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 0
"Text2"
""
1 450 25 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 452 27 678 388
1 2 0 "s" 0 0 0 65 0 0  452 27
 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 30 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 32 448 398
1 2 0 "s" 0 0 0 65 0 0  12 32
 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 448 33
1 2 0 "s" 0 0 0 64 0 0  12 12
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13    LV CHANNEL
2 62
"Text17"
""
1 249 61 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 datapoint,dp1;
int hv,i,try;
int crate,count,crateold,hvold;
string channel;

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

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

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

dpGet(\"Crate.Numb:_original.._value\", crate);
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 );

}

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

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 251 63 287 79
1 2 0 "s" 0 0 0 64 0 0  251 63
 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 320 61 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vcc.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vcc.Recv:_online.._value\",crate,i);
  //DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vcc.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 322 63 358 79
1 2 0 "s" 0 0 0 64 0 0  322 63
 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 397 61 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVcc.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVcc.Recv:_online.._value\",crate,i);
  //DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVcc.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 399 63 435 79
1 2 0 "s" 0 0 0 64 0 0  399 63
 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 250 179 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Icc.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Icc.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Icc.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 252 181 288 197
1 2 0 "s" 0 0 0 64 0 0  252 181
 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 249 88 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Vdd.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Vdd.Recv:_online.._value\",crate,i);
//  DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Vdd.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string dp1,sTmp;

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 251 90 287 106
1 2 0 "s" 0 0 0 64 0 0  251 90
 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 321 88 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vdd.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vdd.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVps_Vdd.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 323 90 359 106
1 2 0 "s" 0 0 0 64 0 0  323 90
 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 69
"Text24"
""
1 250 204 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,try;
int crate,count;
string channel;

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

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

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


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

dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Idd.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
//DebugN(\"READOUT Idd\",fNewValue);
//dpGet(datapoint,try);
//DebugN(\"datapoint\",datapoint,try);
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 252 206 288 222
1 2 0 "s" 0 0 0 64 0 0  252 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 LVch_Idd
2 70
"Text25"
""
1 250 115 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSV.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSV.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSV.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


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

//dpGet(dp,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 252 117 288 133
1 2 0 "s" 0 0 0 64 0 0  252 117
 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 320 115 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSI.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSI.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchVCSI.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 322 117 358 133
1 2 0 "s" 0 0 0 64 0 0  322 117
 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 250 142 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINV.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINV.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINV.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 
string sTmp;

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 252 144 288 160
1 2 0 "s" 0 0 0 64 0 0  252 144
 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 320 142 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINI.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVchPINI.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 322 144 358 160
1 2 0 "s" 0 0 0 64 0 0  322 144
 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 250 245 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm0.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm0.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm0.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 252 247 288 263
1 2 0 "s" 0 0 0 64 0 0  252 247
 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 250 270 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.MOch_Tm1.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 252 272 288 288
1 2 0 "s" 0 0 0 64 0 0  252 272
 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 107
"Text55"
""
1 20 40 E E E 1 E 1 E N {0,0,51} 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 22 42 92 58
0 2 0 "s" 0 0 0 64 0 0  22 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 63 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 65 68 78
0 2 0 "s" 0 0 0 64 0 0  22 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vcc (V)
2 112
"Text58"
""
1 20 90 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 92 68 105
0 2 0 "s" 0 0 0 64 0 0  22 92
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vdd (V)
2 113
"Text59"
""
1 20 115 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 117 78 133
0 2 0 "s" 0 0 0 64 0 0  22 117
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 VCSEL (V)
2 116
"Text60"
""
1 20 142 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 144 88 160
0 2 0 "s" 0 0 0 64 0 0  22 144
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 PIN Bias (V)
2 117
"Text61"
""
1 20 203 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 205 98 221
0 2 0 "s" 0 0 0 64 0 0  22 205
 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 181 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 183 98 199
0 2 0 "s" 0 0 0 64 0 0  22 183
 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 245 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 247 88 263
0 2 0 "s" 0 0 0 64 0 0  22 247
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Warn (C)
2 124
"Text64"
""
1 20 268 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 270 88 286
0 2 0 "s" 0 0 0 64 0 0  22 270
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 T Trip (C)
2 125
"Text65"
""
1 20 311 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 313 88 329
0 2 0 "s" 0 0 0 64 0 0  22 313
 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 337 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 339 88 355
0 2 0 "s" 0 0 0 64 0 0  22 339
 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 361 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 363 68 376
0 2 0 "s" 0 0 0 64 0 0  22 363
 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 169 40 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 171 42 257 56
0 2 0 "s" 0 0 0 64 0 0  171 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 13 MONITORING : 
2 135
"Text71"
""
1 170 63 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 172 65 215 78
0 2 0 "s" 0 0 0 64 0 0  172 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Vcc (V)
2 136
"Text72"
""
1 170 90 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 172 92 216 105
0 2 0 "s" 0 0 0 64 0 0  172 92
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 Vdd (V) 
2 137
"Text73"
""
1 172 117 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 174 119 240 135
0 2 0 "s" 0 0 0 64 0 0  174 119
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 VCSEL
2 138
"Text74"
""
1 172 142 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 174 144 250 160
0 2 0 "s" 0 0 0 64 0 0  174 144
 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 139
"Text75"
""
1 196 183 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 198 185 244 198
0 2 0 "s" 0 0 0 64 0 0  198 185
 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 172 181 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 174 183 220 196
0 2 0 "s" 0 0 0 64 0 0  174 183
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Icc (mA) 
2 141
"Text77"
""
1 172 247 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 174 249 240 265
0 2 0 "s" 0 0 0 64 0 0  174 249
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 T Link 0 (C) 
2 142
"Text78"
""
1 172 270 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 174 272 238 286
0 2 0 "s" 0 0 0 64 0 0  174 272
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 T Link 1 (C)
2 152
"Text88"
""
1 172 206 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 174 208 220 221
0 2 0 "s" 0 0 0 64 0 0  174 208
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 Idd (mA)
2 208
"Text3"
""
1 450 390 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
201 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 452 392 678 548
1 2 0 "s" 0 0 0 65 0 0  452 392
 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 410 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 412 448 548
1 2 0 "s" 0 0 0 65 0 0  12 412
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 210
"Text15"
""
1 600 461 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
203 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



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

dpGet(\"Crate.Numb:_original.._value\", crate);
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 602 463 658 479
1 2 0 "s" 0 0 0 64 0 0  602 463
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVcaMask
2 211
"Text50"
""
1 477 40 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
204 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 479 42 545 56
0 2 0 "s" 0 0 0 64 0 0  479 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 212
"Text52"
""
1 480 99 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
205 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 101 520 115
0 2 0 "s" 0 0 0 64 0 0  482 101
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Trip
2 213
"Text54"
""
1 480 66 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
206 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 68 522 80
0 2 0 "s" 0 0 0 64 0 0  482 68
 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 150 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 152 570 168
0 2 0 "s" 0 0 0 64 0 0  482 152
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 MONITORING: 
2 216
"Text84"
""
1 480 177 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 179 558 195
0 2 0 "s" 0 0 0 64 0 0  482 179
 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 207 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 209 548 225
0 2 0 "s" 0 0 0 64 0 0  482 209
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 AC Power
2 218
"Text89"
""
1 480 440 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
211 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 442 548 458
0 2 0 "s" 0 0 0 64 0 0  482 442
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL :
2 219
"Text90"
""
1 480 463 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
212 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 465 528 478
0 2 0 "s" 0 0 0 64 0 0  482 465
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Mask
2 222
"Text33"
""
1 595 65 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;



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

dpGet(\"Crate.Numb:_original.._value\", crate);
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 597 67 653 83
1 2 0 "s" 0 0 0 64 0 0  597 67
 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 595 99 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
216 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



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

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

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

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


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

}

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

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 597 101 653 117
1 2 0 "s" 0 0 0 64 0 0  597 101
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcaTrip
2 225
"Text6"
""
1 595 177 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;

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

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

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 597 179 653 195
1 2 0 "s" 0 0 0 64 0 0  597 179
 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 595 207 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;

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

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

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 597 209 653 225
1 2 0 "s" 0 0 0 64 0 0  597 209
 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 280
"nb0"
""
1 408 414 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 410 416 432 432
0 2 0 "s" 0 0 0 64 0 0  410 416
 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 408 429 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 410 431 432 449
0 2 0 "s" 0 0 0 64 0 0  410 431
 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 408 445 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 410 447 438 463
0 2 0 "s" 0 0 0 64 0 0  410 447
 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 408 461 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 410 463 436 479
0 2 0 "s" 0 0 0 64 0 0  410 463
 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 408 478 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 410 480 432 496
0 2 0 "s" 0 0 0 64 0 0  410 480
 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 408 495 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 410 497 430 513
0 2 0 "s" 0 0 0 64 0 0  410 497
 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 408 512 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 410 514 432 530
0 2 0 "s" 0 0 0 64 0 0  410 514
 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 408 529 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 410 531 434 547
0 2 0 "s" 0 0 0 64 0 0  410 531
 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 406 293 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 408 295 430 311
0 2 0 "s" 0 0 0 64 0 0  408 295
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 nb0
2 299
"Text87"
""
1 406 314 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 408 316 430 332
0 2 0 "s" 0 0 0 64 0 0  408 316
 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 406 335 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 408 337 430 353
0 2 0 "s" 0 0 0 64 0 0  408 337
 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 406 356 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 408 358 430 374
0 2 0 "s" 0 0 0 64 0 0  408 358
 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 44
"Text10"
""
1 290 480 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;

dpGet(\"Crate.Numb:_original.._value\", crate);
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,i;
string dp1,dp2;
dyn_int probe;
int status,indx;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\",crate);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchCurr.Recv:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
probe=makeDynInt(62005,12005,2405,435);
sprintf(dp2, \"Crate%02d.Channel%02d.HVchStat.Recv:_online.._value\",crate, hv);
dpGet(dp2,status);
indx=status&3; // this gives in indx 3&3=3 ; 2&3=2 ;1&3=1; 0&3 =0
indx=indx+1;
DebugN(\"fNewValue before\",fNewValue);
fNewValue=fNewValue*2.5/4096/probe[indx]/0.000000001;
DebugN(\"fNewValue after\",fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv,i;
string dp1,dp2;
dyn_int probe;
int status,indx;



dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\",crate);
sprintf(dp1, \"Crate%02d.Channel%02d.HVchCurr.Recv:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
probe=makeDynInt(62005,12005,2405,435);
sprintf(dp2, \"Crate%02d.Channel%02d.HVchStat.Recv:_online.._value\",crate, hv);
dpGet(dp2,status);
indx=status&3; // this gives in indx 3&3=3 ; 2&3=2 ;1&3=1; 0&3 =0
//DebugN(\"indx \", indx);
indx=indx+1;
fNewValue=fNewValue*2.5/4096/probe[indx]/0.000000001;
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 292 482 398 498
1 2 0 "s" 0 0 0 64 0 0  292 482
 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 290 450 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.HVchVolt.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate,i);
 // DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


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

//dpGet(dp,fNewValue);
//DebugN(\"READOUT Vcc\",fNewValue);
//dpGet(datapoint,try);
//DebugN(\"datapoint\",datapoint,try);
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

//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 292 452 398 468
1 2 0 "s" 0 0 0 64 0 0  292 452
 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 210 424 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 212 426 308 442
0 2 0 "s" 0 0 0 64 0 0  212 426
 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 162
"Text98"
""
1 209 482 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 211 484 257 497
0 2 0 "s" 0 0 0 64 0 0  211 484
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Current
2 163
"Text99"
""
1 209 452 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 211 454 277 467
0 2 0 "s" 0 0 0 64 0 0  211 454
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Voltage (V)
2 155
"Text91"
""
1 19 424 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 21 426 91 442
0 2 0 "s" 0 0 0 64 0 0  21 426
 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 450 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 452 98 478
0 2 0 "s" 0 0 0 64 0 0  22 452
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 Voltage (V)
2 157
"Text93"
""
1 20 478 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 480 108 496
0 2 0 "s" 0 0 0 64 0 0  22 480
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 Curr Trip 
2 158
"Text94"
""
1 20 514 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 516 68 529
0 2 0 "s" 0 0 0 64 0 0  22 516
 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 134 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 136 13 222 29
0 2 0 "s" 0 0 0 64 0 0  136 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 390 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 392 448 413
1 2 0 "s" 0 0 0 64 0 0  12 392
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13   HV CHANNELS
2 365
"Text56"
""
1 143 391 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 145 393 231 409
0 2 0 "s" 0 0 0 64 0 0  145 393
 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 450 390 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
368 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 452 392 678 413
1 2 0 "s" 0 0 0 64 0 0  452 392
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9   HV CARD
2 275
"hvcard"
""
1 535 390 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
267 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

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

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i;
int crate,count;
string channel;
dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

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

dpGet(\"Crate.Numb:_original.._value\", crate);
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;

dpGet(\"Crate.Numb:_original.._value\", crate);
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 345 14 369 31
1 2 0 "s" 0 0 0 64 0 0  345 14
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 423
"Text43"
""
1 288 13 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
404 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 290 15 336 28
0 2 0 "s" 0 0 0 64 0 0  290 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 424
"Text44"
""
1 375 12 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
405 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i;
int crate,count;
string channel;
dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
channel=\"HVch.Numb:_original.._value\";

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

dpGet(\"Crate.Numb:_original.._value\", crate);
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);

sprintf(xTmp,\"%x\", fNewValue);
setValue(\"\", \"text\", xTmp);

}

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

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

sprintf(xTmp,\"%x\", fNewValue);
setValue(\"\", \"text\", xTmp);

//setValue(\"\", \"text\", dpValToString(dp, sNewValue, TRUE)

}
// 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 377 14 401 31
1 2 0 "s" 0 0 0 64 0 0  377 14
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 427
"Text105"
""
1 300 63 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
408 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 302 65 325 78
0 2 0 "s" 0 0 0 64 0 0  302 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 PS
2 428
"Text106"
""
1 373 63 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
409 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 375 65 395 78
0 2 0 "s" 0 0 0 64 0 0  375 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Ret
2 68
"Text23"
""
1 397 88 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,try;
int crate,count,crateold,hvold;
string channel;

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

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);
dpGet(\"Crate.Indx:_original.._value\", crateold);
dpGet(\"HVch.Indx:_original.._value\", hvold);
sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVdd.Recv:_original.._value\",crateold,hvold);
//DebugN(\"Datapoint\",datapoint);
dpConnect(\"EP_textFieldInCB1\",datapoint); 
//dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
//dpConnect(\"Connection\",channel);
//dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}
Connection(string dp, int iNewValue)
{
int crate,i;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crate);
  dpGet(\"HVch.Indx:_original.._value\", i);
//DebugN(\"crate\", crate, \"i\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVdd.Recv:_online.._value\",crate,i);
//  DebugN(\"Datapoint\",datapoint);
 dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVretVdd.Recv:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float fNewValue)
{ 

string sTmp;

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 399 90 435 106
1 2 0 "s" 0 0 0 64 0 0  399 90
 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 429
"Text108"
""
1 217 63 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
410 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 219 65 242 78
0 2 0 "s" 0 0 0 64 0 0  219 65
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Mod
2 430
"Text109"
""
1 374 90 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
411 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 376 92 396 105
0 2 0 "s" 0 0 0 64 0 0  376 92
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Ret
2 431
"Text112"
""
1 301 90 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
412 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 303 92 326 105
0 2 0 "s" 0 0 0 64 0 0  303 92
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 2 PS
2 432
"Text114"
""
1 234 117 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
413 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 236 119 259 132
0 2 0 "s" 0 0 0 64 0 0  236 119
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 V
2 433
"Text115"
""
1 305 116 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
414 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 307 118 330 131
0 2 0 "s" 0 0 0 64 0 0  307 118
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 I
2 435
"Text117"
""
1 234 142 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
416 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 236 144 259 157
0 2 0 "s" 0 0 0 64 0 0  236 144
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 V
2 436
"Text118"
""
1 305 141 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
417 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 307 143 330 156
0 2 0 "s" 0 0 0 64 0 0  307 143
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 1 I
2 19
"Text1"
""
1 343 392 E E E 1 E 1 E N {0,0,0} E N {102,153,204} 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;

dpGet(\"Crate.Numb:_original.._value\", crate);
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);
dpGet(\"Crate.Numb:_original.._value\", crate);
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;

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

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 345 394 369 411
1 2 0 "s" 0 0 0 64 0 0  345 394
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 161
"Text97"
""
1 288 393 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 290 395 336 408
0 2 0 "s" 0 0 0 64 0 0  290 395
 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 398
"Text9"
""
1 375 374 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
381 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;

dpGet(\"Crate.Numb:_original.._value\", crate);
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, xTmp;


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

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

}

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


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

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

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




}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 377 394 399 411
1 2 0 "s" 0 0 0 64 0 0  377 394
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 304
"lvcard"
""
1 535 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 537 13 556 28
0 2 0 "s" 0 0 0 64 0 0  537 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 1 0
2 227
"Text8"
""
1 595 393 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
220 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



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

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

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


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

}

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

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

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

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

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

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



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

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

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


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

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

}

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

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

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

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

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 626 394 648 410
1 2 0 "s" 0 0 0 64 0 0  626 394
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 HVchStat
2 221
"Text100"
""
1 553 393 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
214 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 555 395 611 411
0 2 0 "s" 0 0 0 64 0 0  555 395
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 134
"Text70"
""
1 553 13 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 555 15 601 28
0 2 0 "s" 0 0 0 64 0 0  555 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 224
"Text51"
""
1 595 13 E E E 1 E 1 E N {0,0,0} E N {204,204,153} 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;

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

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

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 597 15 621 31
1 2 0 "s" 0 0 0 64 0 0  597 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 401
"Text111"
""
1 627 13 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
383 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

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


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

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

}

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

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

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 629 15 651 31
1 2 0 "s" 0 0 0 64 0 0  629 15
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 LVchStat
2 437
"Text13"
""
1 594 318 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
417 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



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

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

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

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

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

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

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

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

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 596 320 650 336
1 2 0 "s" 0 0 0 64 0 0  596 320
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 MOch_Tm1
2 438
"Text14"
""
1 480 318 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
418 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 482 320 588 336
0 2 0 "s" 0 0 0 64 0 0  482 320
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 15 Acknowledgement
2 461
"Text16"
""
1 259 480 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
439 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 261 482 307 498
0 2 0 "s" 0 0 0 64 0 0  261 482
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 ( nA)
2 462
"Text35"
""
1 20 492 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
440 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 494 68 510
0 2 0 "s" 0 0 0 64 0 0  22 494
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 ( nA)
2 463
"Text36"
""
1 218 90 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
440 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 220 92 243 105
0 2 0 "s" 0 0 0 64 0 0  220 92
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Mod
14 455
"TextField14"
""
1 98 203 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
434 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 201 150 227
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchDTrp.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 180
"TextField8"
""
1 98 60 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 ""
96 58 150 84
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
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(\"Crate.Numb:_original.._value\", crate);
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 );
}


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

dpGet(\"Crate.Numb:_original.._value\", crate);
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 );

}

" 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);
dpGet(\"Crate.Numb:_original.._value\", crate);
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 232
"TextField6"
""
1 525 99 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
225 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
523 97 587 123
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

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

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

}

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

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

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

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

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


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

14 289
"TextField1"
""
1 525 65 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
281 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
523 63 587 89
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

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

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

}

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



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

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

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

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

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



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


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

14 58
"TextField2"
""
1 98 513 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 ""
96 511 192 537
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

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

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

}

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

"// 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);
dpGet(\"Crate.Numb:_original.._value\", crate);
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 98 453 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 ""
96 451 192 477
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"Item.Crate:_original.._value\", crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.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);
dpGet(\"Crate.Numb:_original.._value\", crate);
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 98 483 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 ""
96 481 192 507
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

14 411
"TextField3"
""
1 1045 526 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
393 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
518 459 582 485
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

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

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

}

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



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

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

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


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

  if( iNewValue != sTmp )
  {
    ChildPanelOn( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\",1,0 )));
    return;
  }
dpGet(\"Crate.Numb:_original.._value\",crate);
dpGet(\"HVch.Numb:_original.._value\", hv);
icard=hv/8;
doit=1;
sprintf(datapoint,\"Crate%02d.HV_card%02d.HVcaMask.Send:_original.._value\",crate,icard);
//DebugN(\"icard \",icard,\"crate \",crate,\"datapoint \",datapoint,iNewValue);
  for (i=icard*8;i<=icard*8+8;i++)
  {   
   sprintf(datapoint2,\"Crate%02d.Channel%02d.HVchVolt.Recv:_online.._value\",crate,i);
   dpGet(datapoint2,volt);
   DebugN(\"why?\",datapoint2,volt);
      if(volt>10)
	  {
      doit=0;
      }
  }
      if (doit==1||iNewValue==255)
        {
         dpSetWait(datapoint, iNewValue);
 //        DebugN(\"if iNewValue\",iNewValue, \"iVdd\", iVdd, \"iVcc\", iVcc,iVcsel,iVpin);
        }
      else 
        {
         DebugN(\"Hei\");  
         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);
}



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

13 426
"Button1"
""
1 411 13 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
407 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
409 11 433 35
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_childPanelOn();
}

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
13 400
"StatExplHV"
""
1 409 393 E E E 1 E 1 E N "_3DText" E N {102,153,204} E E
 E E
382 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
407 391 431 415
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
13 405
"Button3"
""
1 654 393 E E E 1 E 1 E N "_3DText" E N {102,153,204} E E
 E E
387 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
652 391 676 415
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

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

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

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
14 450
"TextField9"
""
1 98 87 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
429 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 85 150 111
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
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(\"Crate.Numb:_original.._value\", crate);
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 );
}


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

dpGet(\"Crate.Numb:_original.._value\", crate);
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 );

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVch_Vdd.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 451
"TextField15"
""
1 98 114 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
430 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 112 150 138
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVCSV.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 452
"TextField29"
""
1 98 141 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
431 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 139 150 165
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchPINV.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 454
"TextField13"
""
1 98 178 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
433 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 176 150 202
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCTrp.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 456
"TextField19"
""
1 98 242 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
435 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 240 150 266
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTLim.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 457
"TextField20"
""
1 98 267 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
436 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 265 150 291
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchTTrp.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 458
"TextField21"
""
1 98 308 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
437 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 306 150 332
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKS.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 459
"TextField22"
""
1 98 335 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
438 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 333 150 359
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchCLKR.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 460
"TextField23"
""
1 98 360 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
439 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
96 358 150 384
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

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

}

" 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);
dpGet(\"HVch.Crate:_original.._value\", crate);
sprintf(datapoint, \"Crate%02d.Channel%02d.LVchVOut.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

13 464
"Button4"
""
1 300 340 E E E 1 E 1 E N "_3DText" E N {255,255,204} E E
 E E
440 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 ""
298 338 382 372
T 
1
LANG:1 3 XXX
"//Function (NoName)_EventInitialize()
main()
{
dpSet(\"SCTmops1:Info.Name:_original.._value\", \"- MPS_DP - Starting up...\");
DebugN(\"trial\");
LoadX();
delay(1,0);
dpSet(\"SCTmops1:Info.Name:_original.._value\", \"- MPS_DP - ready\");
//     Read();
//   dpConnect(\"setOpening\",\"setOpening.trigger:_online.._value\");
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",0);
 //  Load();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",1);
 //  Configure();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",2);
//   Monitor();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",3);
   
//   Configure();
//   DebugN(\"configure\");

//   Monitor();
//   DebugN(\"monitor\");
   

}


//-----------------------------------------------------------
// Load initialisation values == XXX  into the ELMB
//-----------------------------------------------------------

void LoadX() {

dyn_errClass err;
int i,j, crateMax;
int k,l,m,n,icard, crate;
dyn_string valset, valset2, valset3; 
string datapoint1, datapoint2, datapoint3;
//int value;
float value;

DebugN(\"entered\");
dpSet(\"SCTmops1:Info.Name:_original.._value\", \"- Loading inital values...\");

crateMax=2;
//value == \"XXX\";

//value== -999;
value = -999;

//dpSet(\"Crate00.Controller.CCchRead.Send:_original.._value\", channel);

//Setting startup values to the receive buttons
//-----------------------------------------------------------------

valset=makeDynString(\"HVchVolt\",\"HVchCurr\");
// HV card taken out HVcaMask ( by the way mask is only read) ttok out also from LV
valset2=makeDynString(\"LVcaTemp\",\"LVcaPowr\",
                      \"LVch_Vcc\",\"LVch_Vdd\",\"LVchVCSV\",\"LVchPINV\", 
                      \"LVch_Icc\", \"LVch_Idd\", \"MOch_Tm1\", \"MOch_Tm0\", 
                      \"LVps_Vcc\", \"LVps_Vdd\", \"LVchPINI\", \"LVchVCSI\",
                       \"LVretVcc\", \"LVretVdd\");

for (k=0; k<=1; k++) 
  {
  DebugN(\"started loop\");

      for(j=1; j<=2; j++)
        {
        for(i=0; i<=47; i++)
           {
           sprintf(datapoint1,\"Crate%02d.Channel%02d.%s.Recv:_original.._value\",k,i,valset[j]);
           dpSetWait(datapoint1, value);
//           DebugN(\"datapoint1\", datapoint1,valset[j],\"value= \",value);
           }
        }
 
        for(j=1; j<=16; j++)
        {
	    if(j<=2)
	      {

	      for(i=0; i<=11; i++)
             {
              sprintf(datapoint2,\"Crate%02d.LV_card%02d.%s.Recv:_original.._value\", k,i,valset2[j]);
              dpSetWait(datapoint2, value);
              //DebugN(\"TTrip\", initValue2[1],\"LVMask\",initValue2[2]);
             }

 	       }
   	    else
 	       {
 	      
           for(i=0; i<=47; i++)
              {
              sprintf(datapoint2,\"Crate%02d.Channel%02d.%s.Recv:_original.._value\",k,i,valset2[j] );
              dpSetWait(datapoint2, value);
//              DebugN(\"LV channel\", datapoint2,valset2[j],\"value= \",value);
              }
           }
         }
  } 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);       



}






//Read all monitored values from ELMB

void Read()
{
dyn_errClass err;
int lv, icard, channel, i;

dpGet(\"HVch.Numb:_original.._value\", lv); 
icard=lv/4;

for (i=icard*4;i<=icard*4+47;i++){
DebugN(\"WE CALLED IT\");
//DebugN(\"lv\", lv ,\"icard\", icard,\"i\", i);
channel=i;
dpSet(\"Crate00.Controller.CCchRead.Send:_original.._value\", channel);
channel=i+100;
delay(0,10);
dpSet(\"Crate00.Controller.CCchRead.Send:_original.._value\", channel);
delay(0,10);
//DebugN(\"i\", i,\"channel\", channel); 
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
 }
}

//

void setOpening(string dpeTrigger, bool state)
{
string paramStr;
dyn_string param;
//string dp_path;
float value;
int i;
bool bit;
string port;
int response;

/*
if(state)
{
  response=0;
  dpGet(\"setOpening.trigger:_online.._value\", paramStr);
  param=strsplit(paramStr,\"|\");

  //sscanf(param[1],\"%s\",dp_path);
  sscanf(param[1],\"%f\",value);

  //Limi01.FatL
  response=dpSetWait(\"Crate00.DDC.DCS_STATES:_original.._value\",value);
      if(response!=0)
         response=0-response;

   dpSet(\"setOpening.response:_original.._value\",response,
         \"setOpening.trigger:_original.._value\",!state);
 }
*/
}

//-----------------------------------------------------------
// Load initialisation values into the ELMB
//-----------------------------------------------------------

Load()
{
dyn_errClass err;
int i,j,k,l,m,n,icard;
dyn_string valset, valset2, valset3; 
string datapoint1, datapoint2, datapoint3;
dyn_float initValue, initValue2, initValue3;


// Set Channel number to zero
//-----------------------------------------------------------
dpSetWait(\"HVch.Numb:_original.._value\", 0);


// Starting the ELMB
//-----------------------------------------------------------
//dpSetWait(\"Crate00.Elmb_0.NMT:_original.._value\", 1); 
//DebugN(\"ELMB\");

//Setting configuration of the HV Channels and Cards to the ELMB
//------------------------------------------------------------------ 
valset=makeDynString(\"HVcaMask\",\"HVchVolt\",\"HVchITrp\",\"HVchRamp\");
initValue= makeDynFloat(0,100,1000,3);

for(j=1; j<=4; j++)
    {
	if(j==1)
	  {
	  for(i=0; i<=5; i++)
         {
         sprintf(datapoint1, \"Crate00.HV_card%02d.%s.Send:_original.._value\",i,valset[j]);
         dpSetWait(datapoint1, initValue[j]);
         }
 	  }
 	  else
 	  {
       for(i=0; i<=47; i++)
         {
        sprintf(datapoint1, \"Crate00.Channel%02d.%s.Send:_original.._value\",i,valset[j] );
        dpSetWait(datapoint1, initValue[j]);
         }
        }
       }

//Setting configuration of the LV Cards and channels to the ELMB 
//-----------------------------------------------------------------

valset2=makeDynString(\"LVcaTrip\",\"LVcaMask\",\"LVch_Vcc\",\"LVch_Vdd\",\"LVchVCSV\",\"LVchPINV\", \"LVchDTrp\", \"LVchCTrp\", \"LVchTLim\", \"LVchTTrp\", \"LVchCLKS\", \"LVchCLKR\", \"LVchVOut\");
initValue2=makeDynFloat(46*2.5,0,3.5*50,4*50,4*25,6*20,50/2,50/2,128,148,0,0,1);

for(j=1; j<=13; j++)
    {
	if(j<=2)
	  {
	  for(i=0; i<=11; i++)
         {
         sprintf(datapoint2, \"Crate00.LV_card%02d.%s.Send:_original.._value\",i,valset2[j]);
         dpSetWait(datapoint2, initValue2[j]);
//	     DebugN(\"TTrip\", initValue2[1],\"LVMask\",initValue2[2]);
         }
 	  }
 	  else
 	  {
       for(i=0; i<=47; i++)
         {
        sprintf(datapoint2, \"Crate00.Channel%02d.%s.Send:_original.._value\",i,valset2[j] );
        dpSetWait(datapoint2, initValue2[j]);
         }
        }
       }
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);       
}

//-----------------------------------------------------------
// Transmitting the right values from the ELMB to the Cards
//-----------------------------------------------------------

Configure() {
DebugN(\"Configure\");  
     dpSetWait(\"Crate00.Controller.CCch_Set.Send:_original.._value\", 255); 
  }


//-----------------------------------------------------------
// Starting monitoring state
//-----------------------------------------------------------

Monitor() {
  DebugN(\"Monitor\");
  }

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