V 10
1
LANG:1 8 (NoName)
PANEL,369 87 446 284 N "_3DFace" 0
EEE E E 1 -1 -1 0  30 70
"" 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
6 36
"Border1"
""
1 10 270 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
31 0 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 10 10 380 270
2 37
"Text3"
""
1 10 10 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
32 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 12 378 33
1 2 0 "s" 0 0 0 65 0 0  12 12
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 18 STATUS EXPLICATION
2 47
"HVStatExp"
""
1 55 100 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
42 0 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 57 102 279 147
0 2 0 "s" 0 0 0 192 0 0  57 102
 3
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 34 130  - Reset  the Crate Controller
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 27 129  - Preoperational State
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 41 1       - Operational State (recommended)
2 76
"Text1"
""
1 29 62 E E E 1 E 1 E N {0,0,0} E N {153,204,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 datapoint,dp1;
int hv,i;
int crate,count;
string channel;
//\"SCTmops1:Crate00.Controller.CCie_NMT.Recv:_online.._value\"

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

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
dpConnect(\"EP_textFieldInCB\",channel);
count=1;
for(i=0; i<= count;i++)
  {
  sprintf(datapoint,\"Crate%02d.Controller.CCie_NMT.Recv:_online.._value\",crate);
  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(\"Crate.Numb:_original.._value\", hv);
sprintf(dp1, \"Crate%02d.Controller.CCie_NMT.Recv:_online.._value\",crate);
dpGet(dp1, fNewValue);
setValue(\"\", \"text\", dpValToString(dp1, fNewValue, TRUE) ); 

}

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

crate=0;

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 31 64 75 83
1 2 0 "s" 0 0 0 64 0 0  31 64
 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 CCie_NMT
2 77
"Text9"
""
1 89 42 E E E 1 E 1 E N {0,0,0} E N {153,204,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 datapoint,dp1;
int hv,i;
int crate,count;
string channel;

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

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

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


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

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

}

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



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

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




}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVchStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 91 64 133 83
1 2 0 "s" 0 0 0 64 0 0  91 64
 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 CCie_NMT
2 78
"Text110"
""
1 27 45 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
73 0 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 29 47 138 68
0 2 0 "s" 0 0 0 64 0 0  29 47
 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 19 Dec             Hex
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