V 10
1
LANG:1 8 (NoName)
PANEL,258 70 940 721 N "_3DFace" 0
EEE E E 1 -1 -1 0  30 40
"" 0 1
EE 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 0
"Text2"
""
1 530 20 E E E 1 E 1 E N {0,0,0} E N {153,204,255} 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 532 22 778 428
1 2 0 "s" 0 0 0 65 0 0  532 22
 1
1
LANG:1 125 -microsoft windows-Times New Roman-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,18,Times New Roman
0 ""
1
LANG:1 3 HV 
2 19
"Text1"
""
1 650 317 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
19 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

string datapoint,dp1;
int hv,i;
int crate,count;
string channel;

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVchStat:_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,\"SCTps:Crate%d.Channel_%d.HV.HVchStat:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchStat:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchStat:_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 {SCTps: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 652 319 718 335
1 2 0 "s" 0 0 0 64 0 0  652 319
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVchStat
2 24
"Text4"
""
1 20 20 E E E 1 E 1 E N {0,0,0} E N {255,255,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 22 22 528 428
1 2 0 "s" 0 0 0 65 0 0  22 22
 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 3 LV 
2 29
"Text9"
""
1 370 100 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
29 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVchStat:_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,\"SCTps:Crate%d.Channel_%d.LV.LVchStat:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchStat:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchStat:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );


}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 102 438 118
1 2 0 "s" 0 0 0 64 0 0  372 102
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVchStat
2 44
"Text10"
""
1 650 347 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
44 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVchCurr:_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,\"SCTps:Crate%d.Channel_%d.HV.HVchCurr:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchCurr:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchCurr:_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 {SCTps: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 652 349 718 365
1 2 0 "s" 0 0 0 64 0 0  652 349
 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 650 377 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
46 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;
//string* datapoint1;
string datapoint,dp1;
int hv,i;
int crate,count;
string channel;
crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVchVolt:_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,\"SCTps:Crate%d.Channel_%d.HV.HVchVolt:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchVolt:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
fNewValue = fNewValue /8;
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVchVolt:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue = fNewValue /8;
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 {SCTps: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 652 379 718 395
1 2 0 "s" 0 0 0 64 0 0  652 379
 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 53
"Text13"
""
1 680 207 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
53 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



 crate=0;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 channel=\"SCTps:Item.HV:_original.._value\";
 sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_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,\"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

 crate=0;

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_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 {SCTps: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 682 209 748 225
1 2 0 "s" 0 0 0 64 0 0  682 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 HVcoRamp
2 54
"Text14"
""
1 680 177 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
54 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_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,\"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_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 {SCTps: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 682 179 748 195
1 2 0 "s" 0 0 0 64 0 0  682 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 HVcoITrp
2 56
"Text16"
""
1 680 147 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
56 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_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,\"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;

sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);

sprintf(dp1, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_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 {SCTps: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 682 149 748 165
1 2 0 "s" 0 0 0 64 0 0  682 149
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVcoVolt
2 62
"Text17"
""
1 370 130 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
60 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vcc:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_Vcc:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vcc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vcc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 372 132 438 148
1 2 0 "s" 0 0 0 64 0 0  372 132
 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 450 130 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
61 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vcc:_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,\"SCTps:Crate%d.Channel_%d.LV.LVps_Vcc:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vcc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vcc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 452 132 518 148
1 2 0 "s" 0 0 0 64 0 0  452 132
 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 370 400 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
62 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_CSR:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_CSR:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_CSR:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_CSR:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 402 438 418
1 2 0 "s" 0 0 0 64 0 0  372 402
 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_CSR
2 65
"Text20"
""
1 370 280 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
63 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_Icc:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_Icc:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Icc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue*10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Icc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue*10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 282 438 298
1 2 0 "s" 0 0 0 64 0 0  372 282
 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 370 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
64 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vdd:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_Vdd:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vdd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Vdd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 372 162 438 178
1 2 0 "s" 0 0 0 64 0 0  372 162
 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 450 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
65 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vdd:_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,\"SCTps:Crate%d.Channel_%d.LV.LVps_Vdd:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vdd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVps_Vdd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 452 162 518 178
1 2 0 "s" 0 0 0 64 0 0  452 162
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVps_Vdd
2 68
"Text23"
""
1 370 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
66 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_DSR:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_DSR:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_DSR:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_DSR:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 372 438 388
1 2 0 "s" 0 0 0 64 0 0  372 372
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVch_DSR
2 69
"Text24"
""
1 370 250 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
67 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_Idd:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_Idd:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Idd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue*10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_Idd:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue*10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 252 438 268
1 2 0 "s" 0 0 0 64 0 0  372 252
 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 370 190 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
68 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSV:_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,\"SCTps:Crate%d.Channel_%d.LV.LVchVCSV:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSV:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSV:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/25;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 372 192 438 208
1 2 0 "s" 0 0 0 64 0 0  372 192
 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 450 190 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
69 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSI:_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,\"SCTps:Crate%d.Channel_%d.LV.LVchVCSI:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSI:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchVCSI:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 452 192 518 208
1 2 0 "s" 0 0 0 64 0 0  452 192
 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 370 220 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
70 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVchPINV:_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,\"SCTps:Crate%d.Channel_%d.LV.LVchPINV:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchPINV:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/20;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchPINV:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/20;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 222 438 238
1 2 0 "s" 0 0 0 64 0 0  372 222
 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 450 220 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
71 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVchPINI:_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,\"SCTps:Crate%d.Channel_%d.LV.LVchPINI:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchPINI:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVchPINI:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/10;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 222 518 238
1 2 0 "s" 0 0 0 64 0 0  452 222
 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 370 310 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
72 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_T00:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_T00:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_T00:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_T00:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 312 438 328
1 2 0 "s" 0 0 0 64 0 0  372 312
 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_T00
2 75
"Text30"
""
1 370 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
73 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVch_T01:_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,\"SCTps:Crate%d.Channel_%d.LV.LVch_T01:_online.._value\",crate,i);
  dpConnect(\"EP_textFieldInCB1\",datapoint);  
  }                   
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_T01:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVch_T01:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 372 342 438 358
1 2 0 "s" 0 0 0 64 0 0  372 342
 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_T01
2 80
"Text35"
""
1 180 100 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
78 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_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,\"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;

sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_online.._value\",crate, hv);
dpGet(dp1, fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);

sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_online.._value\",crate, hv);
dpGet(dp1,fNewValue);
fNewValue=fNewValue/50;
sprintf(sTmp,\"%f\",fNewValue);
setValue(\"\", \"text\", fNewValue );


}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 102 248 118
1 2 0 "s" 0 0 0 64 0 0  182 102
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVco_Vcc
2 81
"Text36"
""
1 180 130 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
79 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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


crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_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,\"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/50;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue ); 
}

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

 crate=0;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_online.._value\",crate, hv);
 dpGet(dp1,fNewValue);
 fNewValue=fNewValue/50;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 132 248 148
1 2 0 "s" 0 0 0 64 0 0  182 132
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVco_Vdd
2 82
"Text37"
""
1 180 160 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
80 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/25;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue ); 
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/25;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 182 162 248 178
1 2 0 "s" 0 0 0 64 0 0  182 162
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoVCSV
2 83
"Text38"
""
1 180 190 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
81 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/20;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/20;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 182 192 248 208
1 2 0 "s" 0 0 0 64 0 0  182 192
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoPINV
2 84
"Text39"
""
1 180 220 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
82 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue*2;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue*2;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 222 248 238
1 2 0 "s" 0 0 0 64 0 0  182 222
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoDTrp
2 85
"Text40"
""
1 180 250 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
83 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue*2;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
int crate;
int hv;
string dp1,sTmp;
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue*2;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 252 248 268
1 2 0 "s" 0 0 0 64 0 0  182 252
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoCTrp
2 86
"Text41"
""
1 180 280 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
84 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue-128;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue-128;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 182 282 248 298
1 2 0 "s" 0 0 0 64 0 0  182 282
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoTLim
2 87
"Text42"
""
1 180 310 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
85 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue-128;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue-128;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}
// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 182 312 248 328
1 2 0 "s" 0 0 0 64 0 0  182 312
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoTTrp
2 88
"Text43"
""
1 180 340 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
86 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKS:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoCLKS:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKS:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

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

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKS:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue/50;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );
}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 342 248 358
1 2 0 "s" 0 0 0 64 0 0  182 342
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoCLKS
2 89
"Text44"
""
1 180 370 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
87 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKR:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoCLKR:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKR:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

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

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKR:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps: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 182 372 248 388
1 2 0 "s" 0 0 0 64 0 0  182 372
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoCLKR
2 90
"Text45"
""
1 180 400 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
88 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";

sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoVOut:_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,\"SCTps:Crate%d.Channel_%d.LV.LVcoVOut:_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(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoVOut:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

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

 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
sprintf(dp1, \"SCTps:Crate%d.Channel_%d.LV.LVcoVOut:_online.._value\",crate, hv);
 dpGet(dp1, fNewValue);
 fNewValue=fNewValue;
 sprintf(sTmp,\"%f\",fNewValue);
 setValue(\"\", \"text\", fNewValue );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 182 402 248 418
1 2 0 "s" 0 0 0 64 0 0  182 402
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVcoVOut
2 107
"Text55"
""
1 40 70 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
105 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 42 72 269 88
0 2 0 "s" 0 0 0 64 0 0  42 72
 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 30 CONTROL PARAMETERS FOR CHANNEL
2 110
"Text57"
""
1 40 100 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 42 102 88 115
0 2 0 "s" 0 0 0 64 0 0  42 102
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Vcc
2 112
"Text58"
""
1 40 130 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 42 132 88 145
0 2 0 "s" 0 0 0 64 0 0  42 132
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 3 Vdd
2 113
"Text59"
""
1 40 160 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 42 162 98 178
0 2 0 "s" 0 0 0 64 0 0  42 162
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 VCSEL V
2 116
"Text60"
""
1 40 190 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 42 192 98 206
0 2 0 "s" 0 0 0 64 0 0  42 192
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 PIN Bias
2 117
"Text61"
""
1 40 220 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 42 222 88 235
0 2 0 "s" 0 0 0 64 0 0  42 222
 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 Trip
2 120
"Text62"
""
1 40 250 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 42 252 88 265
0 2 0 "s" 0 0 0 64 0 0  42 252
 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 Icc Trip
2 121
"Text63"
""
1 40 280 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 42 282 108 298
0 2 0 "s" 0 0 0 64 0 0  42 282
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 T Warning
2 124
"Text64"
""
1 40 310 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 42 312 88 325
0 2 0 "s" 0 0 0 64 0 0  42 312
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 T Trip
2 125
"Text65"
""
1 40 340 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 42 342 108 358
0 2 0 "s" 0 0 0 64 0 0  42 342
 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 40 370 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 42 372 108 388
0 2 0 "s" 0 0 0 64 0 0  42 372
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 Clock Res
2 129
"Text67"
""
1 40 400 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 42 402 88 415
0 2 0 "s" 0 0 0 64 0 0  42 402
 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 290 70 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 292 72 519 88
0 2 0 "s" 0 0 0 64 0 0  292 72
 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 30 MONITOR PARAMETERS FOR CHANNEL
2 134
"Text70"
""
1 290 100 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 292 102 338 115
0 2 0 "s" 0 0 0 64 0 0  292 102
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 135
"Text71"
""
1 290 130 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 292 132 368 148
0 2 0 "s" 0 0 0 64 0 0  292 132
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 Vcc Mod / PS
2 136
"Text72"
""
1 290 160 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 292 162 368 178
0 2 0 "s" 0 0 0 64 0 0  292 162
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 Vdd Mod / PS
2 137
"Text73"
""
1 290 190 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 292 192 358 208
0 2 0 "s" 0 0 0 64 0 0  292 192
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 11 VCSEL V / I
2 138
"Text74"
""
1 290 220 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 292 222 368 238
0 2 0 "s" 0 0 0 64 0 0  292 222
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 14 PIN Bias V / I
2 139
"Text75"
""
1 290 250 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 292 252 338 265
0 2 0 "s" 0 0 0 64 0 0  292 252
 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 290 280 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 292 282 338 295
0 2 0 "s" 0 0 0 64 0 0  292 282
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Icc 
2 141
"Text77"
""
1 290 310 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 292 312 358 328
0 2 0 "s" 0 0 0 64 0 0  292 312
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 T Link 0
2 142
"Text78"
""
1 290 340 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 292 342 338 355
0 2 0 "s" 0 0 0 64 0 0  292 342
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 8 T Link 1
2 143
"Text79"
""
1 290 400 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
141 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 292 402 358 418
0 2 0 "s" 0 0 0 64 0 0  292 402
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 Vcc Return
2 144
"Text80"
""
1 290 370 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
142 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 292 372 358 388
0 2 0 "s" 0 0 0 64 0 0  292 372
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 Vdd Return
2 152
"Text88"
""
1 290 250 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 292 252 338 265
0 2 0 "s" 0 0 0 64 0 0  292 252
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Idd 
2 155
"Text91"
""
1 550 110 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 552 112 779 128
0 2 0 "s" 0 0 0 64 0 0  552 112
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 30 CONTROL PARAMETERS FOR CHANNEL
2 156
"Text92"
""
1 550 147 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 552 149 598 175
0 2 0 "s" 0 0 0 64 0 0  552 149
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Voltage
2 157
"Text93"
""
1 550 177 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 552 179 608 195
0 2 0 "s" 0 0 0 64 0 0  552 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 9 Curr Trip
2 158
"Text94"
""
1 550 207 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 552 209 598 222
0 2 0 "s" 0 0 0 64 0 0  552 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 4 Ramp
2 160
"Text96"
""
1 550 287 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 552 289 779 305
0 2 0 "s" 0 0 0 64 0 0  552 289
 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 30 MONITOR PARAMETERS FOR CHANNEL
2 161
"Text97"
""
1 580 317 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 582 319 628 332
0 2 0 "s" 0 0 0 64 0 0  582 319
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 162
"Text98"
""
1 580 347 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 582 349 628 362
0 2 0 "s" 0 0 0 64 0 0  582 349
 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 580 377 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 582 379 628 395
0 2 0 "s" 0 0 0 64 0 0  582 379
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Voltage
4 199
"Line1"
""
1 270 60 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
192 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  270 410 270 60
4 203
"Line5"
""
1 550 267 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
196 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E  770 267 550 267
2 208
"Text3"
""
1 530 440 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 532 442 778 628
1 2 0 "s" 0 0 0 65 0 0  532 442
 1
1
LANG:1 125 -microsoft windows-Times New Roman-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,18,Times New Roman
0 ""
1
LANG:1 7 HV CARD
2 209
"Text5"
""
1 20 440 E E E 1 E 1 E N {0,0,0} E N {255,255,153} 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 22 442 528 628
1 2 0 "s" 0 0 0 65 0 0  22 442
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 LV CARD
2 210
"Text15"
""
1 600 550 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
203 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/8;
sprintf(datapoint, \"SCTps:Crate%d.HVCard_%d.HVccMask:_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,\"SCTps:Crate%d.HVCard_%d.HVccMask:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/8;
sprintf(dp1, \"SCTps:Crate%d.HVCard_%d.HVccMask:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/8;
sprintf(dp1, \"SCTps:Crate%d.HVCard_%d.HVccMask:_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 {SCTps: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 552 668 568
1 2 0 "s" 0 0 0 64 0 0  602 552
 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 HVccMask
2 211
"Text50"
""
1 70 500 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 72 502 288 518
0 2 0 "s" 0 0 0 64 0 0  72 502
 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 27 CONTROL PARAMETERS FOR CARD
2 212
"Text52"
""
1 70 542 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 72 544 118 557
0 2 0 "s" 0 0 0 64 0 0  72 544
 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 70 572 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 72 574 118 587
0 2 0 "s" 0 0 0 64 0 0  72 574
 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 290 500 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 292 502 508 518
0 2 0 "s" 0 0 0 64 0 0  292 502
 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 27 MONITOR PARAMETERS FOR CARD
2 215
"Text83"
""
1 320 530 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
208 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 322 532 368 545
0 2 0 "s" 0 0 0 64 0 0  322 532
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 216
"Text84"
""
1 320 560 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 322 562 398 578
0 2 0 "s" 0 0 0 64 0 0  322 562
 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 320 590 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 322 592 388 608
0 2 0 "s" 0 0 0 64 0 0  322 592
 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 600 470 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
211 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 602 472 668 488
0 2 0 "s" 0 0 0 64 0 0  602 472
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL :
2 219
"Text90"
""
1 600 490 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 602 492 648 505
0 2 0 "s" 0 0 0 64 0 0  602 492
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 4 Mask
2 220
"Text95"
""
1 680 470 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
213 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 682 472 768 488
0 2 0 "s" 0 0 0 64 0 0  682 472
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 12 MONITORING :
2 221
"Text100"
""
1 690 500 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 692 502 748 518
0 2 0 "s" 0 0 0 64 0 0  692 502
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 Status
2 222
"Text33"
""
1 200 570 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
215 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccMask:_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,\"SCTps:Crate%d.LVCard_%d.LVccMask:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVccMask:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVccMask:_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 {SCTps: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 202 572 268 588
1 2 0 "s" 0 0 0 64 0 0  202 572
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 LVccMask
2 223
"Text46"
""
1 200 540 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
216 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccTrip:_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,\"SCTps:Crate%d.LVCard_%d.LVccTrip:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVccTrip:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVccTrip:_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 {SCTps: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 202 542 268 558
1 2 0 "s" 0 0 0 64 0 0  202 542
 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 LVccTrip
2 224
"Text51"
""
1 400 530 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
217 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVcmStat:_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,\"SCTps:Crate%d.LVCard_%d.LVcmStat:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmStat:_online.._value\", crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmStat:_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 {SCTps: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 402 532 468 548
1 2 0 "s" 0 0 0 64 0 0  402 532
 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 LVcmStat
2 225
"Text6"
""
1 400 560 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
218 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVcmTemp:_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,\"SCTps:Crate%d.LVCard_%d.LVcmTemp:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmTemp:_online.._value\", crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmTemp:_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 {SCTps: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 402 562 468 578
1 2 0 "s" 0 0 0 64 0 0  402 562
 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 LVcmTemp
2 226
"Text7"
""
1 400 590 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
219 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVcmPowr:_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,\"SCTps:Crate%d.LVCard_%d.LVcmPowr:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmPowr:_online.._value\", crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/4;
sprintf(dp1, \"SCTps:Crate%d.LVCard_%d.LVcmPowr:_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 {SCTps: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 402 592 468 608
1 2 0 "s" 0 0 0 64 0 0  402 592
 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 LVcmPowr
2 227
"Text8"
""
1 690 550 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
220 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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



crate=0;
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
channel=\"SCTps:Item.HV:_original.._value\";
icard=hv/8;
sprintf(datapoint, \"SCTps:Crate%d.HVCard_%d.HVcmStat:_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,\"SCTps:Crate%d.HVCard_%d.HVcmStat:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/8;
sprintf(dp1, \"SCTps:Crate%d.HVCard_%d.HVcmStat:_online.._value\",crate, icard);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

dpGet(\"SCTps:Item.HV:_original.._value\", hv);
icard=hv/8;
sprintf(dp1, \"SCTps:Crate%d.HVCard_%d.HVcmStat:_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 {SCTps: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 692 552 758 568
1 2 0 "s" 0 0 0 64 0 0  692 552
 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 HVcmStat
7 228
"Ellipse7"
""
1 485 545 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
221 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate0.LVCard_0.LVcmStat:_alert_hdl.._act_state_color\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTps:Crate0.LVCard_0.LVcmStat:_alert_hdl.._act_state_color\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setBackColorCB(string dpSource, string sNewColor)
{
  setValue(\"\", \"backCol\", sNewColor);
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTps:Crate0.LVCard_0.LVcmStat}
// DPConfig {:_alert_hdl.._act_state_color}
// DPType {string}
// AlertHdl {TRUE}
// DPEInvalid {}
// DPEConfigInvalid {}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 485 545 5 5
7 229
"Ellipse1"
""
1 485 575 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
222 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate0.LVCard_0.LVcmTemp:_alert_hdl.._act_state_color\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTps:Crate0.LVCard_0.LVcmTemp:_alert_hdl.._act_state_color\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setBackColorCB(string dpSource, string sNewColor)
{
  setValue(\"\", \"backCol\", sNewColor);
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTps:Crate0.LVCard_0.LVcmTemp}
// DPConfig {:_alert_hdl.._act_state_color}
// DPType {string}
// AlertHdl {TRUE}
// DPEInvalid {}
// DPEConfigInvalid {}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 485 575 5 5
7 230
"Ellipse2"
""
1 485 605 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
223 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate0.LVCard_0.LVcmPowr:_alert_hdl.._act_state_color\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTps:Crate0.LVCard_0.LVcmPowr:_alert_hdl.._act_state_color\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setBackColorCB(string dpSource, string sNewColor)
{
  setValue(\"\", \"backCol\", sNewColor);
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTps:Crate0.LVCard_0.LVcmPowr}
// DPConfig {:_alert_hdl.._act_state_color}
// DPType {string}
// AlertHdl {TRUE}
// DPEInvalid {}
// DPEConfigInvalid {}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 485 605 5 5
14 58
"TextField2"
""
1 610 207 E E E 1 E 1 E N "_WindowText" E N "_Window" 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 ""
608 205 672 231
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_original.._value\",crate, hv); 
  dpSet(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 60
"TextField4"
""
1 610 147 E E E 1 E 1 E N "_WindowText" E N "_Window" 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 ""
608 145 672 171
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_original.._value\",crate, hv); 
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 61
"TextField5"
""
1 610 177 E E E 1 E 1 E N "_WindowText" E N "_Window" 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 ""
608 175 672 201
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.HV.HVcoITrp:_original.._value\",crate, hv); 
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 180
"TextField8"
""
1 110 100 E E E 1 E 1 E N "_WindowText" E N "_Window" 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 ""
108 98 172 124
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vcc:_original.._value\",crate, hv); 
iNewValue=fNewValue*50;
dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 181
"TextField9"
""
1 110 130 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
177 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 128 172 154
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
  dpGet(\"SCTps:Item.HV:_original.._value\", hv);
  crate=0;
  sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVco_Vdd:_original.._value\",crate, hv); 
  iNewValue=fNewValue*50;
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 182
"TextField10"
""
1 110 310 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
178 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 308 172 334
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTTrp:_original.._value\",crate, hv); 
 iNewValue=fNewValue+128;
 dpSetWait(datapoint, iNewValue);
 err = getLastError();
 if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 183
"TextField11"
""
1 110 280 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
179 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 278 172 304
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue); 
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoTLim:_original.._value\",crate, hv); 
 iNewValue=fNewValue +128;
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 184
"TextField12"
""
1 110 250 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
180 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 248 172 274
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCTrp:_original.._value\",crate, hv); 
 iNewValue=fNewValue/2;
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 185
"TextField13"
""
1 110 220 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
181 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 218 172 244
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_original.._value\",crate, hv); 

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

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

}

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

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

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

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


  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoDTrp:_original.._value\",crate, hv); 
 iNewValue=fNewValue/2;
 dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 186
"TextField14"
""
1 110 190 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
182 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 188 172 214
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

  getValue(\"\", \"text\", ssTmp);
  sscanf(ssTmp, \"%d\", iNewValue);
  sprintf(sTmp,\"%d\",iNewValue);
  sscanf(ssTmp, \"%f\", fNewValue);
  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 crate=0;
 sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoPINV:_original.._value\",crate, hv); 
 iNewValue=fNewValue*20;
 dpSetWait(datapoint, iNewValue);
 err = getLastError();
 if (dynlen(err) > 0)
   errorDialog(err);
}


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

14 187
"TextField15"
""
1 110 160 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
183 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 158 172 184
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

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

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoVCSV:_original.._value\",crate, hv); 
 iNewValue=fNewValue*25;
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 188
"TextField16"
""
1 110 400 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
184 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 398 172 424
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoVOut:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

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


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

14 189
"TextField17"
""
1 110 370 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
185 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 368 172 394
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKR:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

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


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

14 190
"TextField18"
""
1 110 340 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
186 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
108 338 172 364
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
sprintf(datapoint, \"SCTps:Crate%d.Channel_%d.LV.LVcoCLKS:_original.._value\",crate, hv); 

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

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

}

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

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

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

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

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


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

13 196
"Button1"
""
1 620 60 E E E 1 E 1 E N {255,255,255} E N {0,0,255} E E
 E E
191 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
618 58 692 92
T 
1
LANG:1 4 SEND
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int hv;

  dpGet(\"SCTps:Item.HV:_original.._value\", hv);
  hv=hv+100;
  dpSet(\"SCTps:Crate0.Elmb_0.CCco_Set:_original.._value\", hv);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate0.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
13 197
"Button2"
""
1 120 30 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
192 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
118 28 192 62
T 
1
LANG:1 4 SEND
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv;

  dpGet(\"SCTps:Item.HV:_original.._value\", lv);
  dpSetWait(\"SCTps:Crate0.Elmb_0.CCco_Set:_original.._value\", lv);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate0.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
13 198
"Button3"
""
1 370 30 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
192 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
368 28 442 62
T 
1
LANG:1 4 READ
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv;

  dpGet(\"SCTps:Item.HV:_original.._value\", lv);
  dpSetWait(\"SCTps:Crate0.Elmb_0.CCcmRead:_original.._value\", lv);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate0.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 231
"TextField3"
""
1 600 510 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
224 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
598 508 662 534
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/8;
sprintf(datapoint, \"SCTps:Crate%d.HVCard_%d.HVccMask:_online.._value\",crate, icard); 

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

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

}

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

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

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

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

  if( iNewValue != sTmp )
  {
    ChildPanelOnCentral( \"vision/MessageWarning\",
                         getCatStr( \"e_para\", \"warning\" ),
                         makeDynString( getCatStr( \"e_para\", \"wrongFormat\" )));
    return;
  }
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/8;
doit=1;

  sprintf(datapoint, \"SCTps:Crate%d.HVCard_%d.HVccMask:_original.._value\",crate,icard);
  for (i=icard*8;i<=icard*8+7;i++)
  {   
      DebugN(\"i \",i,\"icard \", icard,\"hv \",hv);
      sprintf(datapoint2, \"SCTps:Crate%d.Channel_%d.HV.HVcoRamp:_original.._value\",crate, i); 
      dpGet(datapoint2, iRamp);
      DebugN(\"datapoint2\",datapoint2,\"iRamp\", iRamp);
      sprintf(datapoint3, \"SCTps:Crate%d.Channel_%d.HV.HVcoVolt:_original.._value\",crate, i); 
      dpGet(datapoint3, iVolt);
      DebugN(\"datapoint3\",datapoint3,\"iVolt\", iVolt);
      if(iRamp=0 || iVolt!=0)
      {
      doit=0;
      }
  }
      if (doit==1)
        {
         dpSetWait(datapoint, iNewValue);
         DebugN(\"if iNewValue\",iNewValue, \"iVolt\", iVolt, \"iRamp\", iRamp);
        }
      else 
        {
         EP_childPanelOn();
         DebugN(\"else iNewValue\",iNewValue, \"iVolt\", iVolt, \"iRamp\", iRamp);
         }
      err = getLastError();
      if (dynlen(err) > 0)
      errorDialog(err);
}


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

14 232
"TextField6"
""
1 130 540 E E E 1 E 1 E N "_WindowText" E N "_Window" 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 ""
128 538 192 564
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccTrip:_online.._value\",crate, icard); 

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

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

}

EP_textFieldInCB(string dp, float fNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}" 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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccTrip:_original.._value\",crate,icard); 
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

14 233
"TextField7"
""
1 130 570 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
226 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 ""
128 568 192 594
3 "s" 0 0 0 0 0 0 
E
"main()
{
  EP_textFieldIn();
}

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

//dpGet(\"SCTps:Item.Crate:_original.._value\", crate);
dpGet(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccMask:_online.._value\",crate, icard); 

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

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

}

EP_textFieldInCB(string dp, float fNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, fNewValue, FALSE) );
}" 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(\"SCTps:Item.HV:_original.._value\", hv);
crate=0;
icard=hv/4;
sprintf(datapoint, \"SCTps:Crate%d.LVCard_%d.LVccMask:_original.._value\",crate,icard); 
  dpSetWait(datapoint, iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}


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

13 234
"Button4"
""
1 140 460 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
227 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
138 458 212 492
T 
1
LANG:1 4 SEND
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv;

  dpGet(\"SCTps:Item.HV:_original.._value\", lv);
  dpSetWait(\"SCTps:Crate0.Elmb_0.CCco_Set:_original.._value\", lv);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate0.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
13 235
"Button5"
""
1 400 460 E E E 1 E 1 E N {255,255,255} E N {255,153,51} E E
 E E
228 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
398 458 472 492
T 
1
LANG:1 4 READ
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
int lv;

  dpGet(\"SCTps:Item.HV:_original.._value\", lv);
  dpSetWait(\"SCTps:Crate0.Elmb_0.CCcmRead:_original.._value\", lv);
 
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate0.Elmb_0.CCco_Set}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 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