V 10
1
LANG:1 6 Values
PANEL,460 362 860 601 N "_3DFace" 0
"main()
{
  EP_textFieldIn();
}

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

name=makeDynString(\"CCie_NMT\",\"CCieStat\",\"CC_error\",\"CCieEcod\",\"CCieBoot\",\"CCieEcod1\",\"CCieEcod2\",\"CCieEcod3\",
\"CCieEcod4\",\"CCieEcod5\");
dpGet(\"Crate.Numb:_original.._value\", crate);
dpGet(\"Crate.Indx:_original.._value\", crateold);


for (i=1;i<11;i++)
  {
  
  sprintf(datapoint[i],\"Crate%02d.Controller.%s.Recv:_online.._value\",crateold,name[i]);
  dpConnect(\"EP_textFieldInCB1\",datapoint[i]); 
  }
dpConnect(\"EP_textFieldInCB2\",datapoint[4],datapoint[6],datapoint[7],datapoint[8]); 
dpConnect(\"Connection\",\"Crate.Numb:_original.._value\");
dpConnect(\"alarmcanbus\",datapoint[2]);
}

Connection(string dp, int iNewValue)
{
int crate,i;
dyn_string datapoint;
dyn_string name;

name=makeDynString(\"CCie_NMT\",\"CCieStat\",\"CC_error\",\"CCieEcod\",\"CCieBoot\",\"CCieEcod1\",\"CCieEcod2\",\"CCieEcod3\",
\"CCieEcod4\",\"CCieEcod5\");

  i=0;
  for (i=1;i<11;i++)
   {
   dpGet(\"Crate.Indx:_original.._value\", crate);
   sprintf(datapoint[i],\"Crate%02d.Controller.%s.Recv:_online.._value\",crate,name[i]);
   dpDisconnect(\"EP_textFieldInCB1\",datapoint[i]); 
   if(i==4||i==6||i==7||i==8)
     {
    dpDisconnect(\"EP_textFieldInCB2\",datapoint[i]); 
     }
   dpGet(\"Crate.Numb:_original.._value\", crate);
   sprintf(datapoint[i],\"Crate%02d.Controller.%s.Recv:_online.._value\",crate,name[i]);
   dpConnect(\"EP_textFieldInCB1\",datapoint[i]); 
     if(i==8)
     {
    dpConnect(\"EP_textFieldInCB2\",datapoint[4],datapoint[6],datapoint[7],datapoint[8]); 
     }
   
   //DebugN(datapoint,\"datapoint\",datapoint[i],i);
   }


}

EP_textFieldInCB1(string dp, float fNewValue)
{ 
  string datapoint,datapoint2;
  dyn_string para_split;
  int crate,i;
  dyn_string name;

  name=makeDynString(\"CCieEcod\",\"CCieEcod1\",\"CCieEcod2\",\"CCieEcod3\",\"CCieEcod4\",\"CCieEcod5\");
  
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);

  para_split=strsplit(dp,\".\");

  sprintf(datapoint,\"Crate%02d.Controller.%s.Recv:_online.._value\",crate,para_split[3]);
  dpGet(datapoint,fNewValue);
  setValue(para_split[3], \"text\", fNewValue );

  //DebugN(\"displayed datapoint\",datapoint);

}

EP_textFieldInCB2(string dpecod, float fecod,string dpecod1, float fecod1,
string dpecod2, float fecod2,string dpecod3, float fecod3)
{ 
  string datapoint,datapoint2;
  dyn_string para_split;
  int crate,i;
  int row,col;
  time t;
  string tim;
  dyn_string ecod;
  dyn_string name;

  name=makeDynString(\"CCieEcod\",\"CCieEcod1\",\"CCieEcod2\",\"CCieEcod3\",\"CCieEcod4\",\"CCieEcod5\");
  
  dpGet(\"Crate.Numb:_original.._value\", crate);
  dpGet(\"HVch.Numb:_original.._value\", i);

  getValue(\"err_msg\", \"currentCell\", row, col);
  t=getCurrentTime();
  tim=formatTime(\"%H:%M:%S\", t);
	for(i=1;i<5;i++)
	 {
	 sprintf(datapoint2,\"Crate%02d.Controller.%s.Recv:_online.._value\",crate,name[i]);
	 dpGet(datapoint2,ecod[i]);
	  //DebugN(ecod[i],\"ecod\");	
	 }
     setValue(\"err_msg\", \"appendLine\", \"#1\", tim, \"#2\", crate, \"#3\", ecod[1], \"#4\", ecod[2], \"#5\", ecod[3], \"#6\", ecod[4]);
  //DebugN(\"displayed datapoint\",datapoint2);

}


alarmcanbus(string dp, int iNewValue)
{
  setValue(\"\", \"text\", dpValToString(dp, iNewValue, TRUE) );
  if(iNewValue==1)
  ChildPanelOnCentral(\"/subpanels/CANBUS.pnl\", \"CANBUS\", \" \");
}
" 0
EE E E 1 -1 -1 0  30 40
"" 0 1
E"
" 0
 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 381
"Text82"
""
1 10 30 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
365 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 32 678 368
1 2 0 "s" 0 0 0 65 0 0  12 32
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 425
"Text81"
""
1 10 361 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
405 0 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 363 678 389
1 2 0 "s" 0 0 0 64 0 0  12 363
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5   Bus
2 24
"LVchannels"
""
1 10 10 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
24 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 12 678 38
1 2 0 "s" 0 0 0 64 0 0  12 12
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6   ELMB
2 107
"Text55"
""
1 20 40 E E E 1 E 1 E N {0,0,51} E N "_Transparent" E E
 E E
105 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 22 42 92 58
0 2 0 "s" 0 0 0 64 0 0  22 42
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 9 CONTROL: 
2 133
"Text69"
""
1 300 40 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
131 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 302 42 388 56
0 2 0 "s" 0 0 0 64 0 0  302 42
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 13 MONITORING : 
2 364
"Text4"
""
1 77 11 E E E 1 E 1 E N {0,0,0} E N {204,204,153} E E
 E E
354 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Item.HV}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Item.HV}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0
 E 0 1 1 0 1 E U  1 E 79 13 156 28
0 2 0 "s" 0 0 0 64 0 0  79 13
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 number
2 407
"Text114"
""
1 311 126 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
389 0 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 313 128 389 144
0 2 0 "s" 0 0 0 64 0 0  313 128
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 5 Error
2 409
"CC_error"
""
1 450 127 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
391 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 129 508 145
1 2 0 "s" 0 0 0 64 0 0  452 129
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 412
"Text109"
""
1 30 68 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
393 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 32 70 108 86
0 2 0 "s" 0 0 0 64 0 0  32 70
 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 CC NMT
2 413
"CCie_NMT"
""
1 450 68 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
394 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}


main()
{

}


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 70 508 86
1 2 0 "s" 0 0 0 64 0 0  452 70
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 415
"Text1"
""
1 311 156 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
396 0 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 313 158 459 174
0 2 0 "s" 0 0 0 64 0 0  313 158
 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 CC Emergengy Error 
2 416
"CCieEcod"
""
1 450 157 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
397 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 159 508 175
1 2 0 "s" 0 0 0 64 0 0  452 159
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 417
"Text3"
""
1 311 186 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
398 0 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 313 188 424 204
0 2 0 "s" 0 0 0 64 0 0  313 188
 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 Bootup message
2 418
"CCieBoot"
""
1 450 187 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
399 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 189 508 205
1 2 0 "s" 0 0 0 64 0 0  452 189
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 424
"Text8"
""
1 10 387 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
404 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  1 E 12 389 678 525
1 2 0 "s" 0 0 0 65 0 0  12 389
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 0 
2 426
"Text56"
""
1 60 362 E E E 1 E 1 E N {0,0,0} E N {102,153,204} E E
 E E
406 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}


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

EP_setInvalid()
{
dyn_errClass err;

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

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

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {Item.HV}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {Item.HV}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0
 E 0 1 1 0 1 E U  1 E 62 364 148 380
0 2 0 "s" 0 0 0 64 0 0  62 364
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-140-100-100-*-*-iso8859-1|-16,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 6 bus nb
2 427
"Text9"
""
1 311 438 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
407 0 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 313 440 389 456
0 2 0 "s" 0 0 0 64 0 0  313 440
 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 Port Error
2 428
"Text10"
""
1 451 438 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
408 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}

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


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 453 440 509 456
1 2 0 "s" 0 0 0 64 0 0  453 440
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 429
"Text11"
""
1 40 403 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
409 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 42 405 118 421
0 2 0 "s" 0 0 0 64 0 0  42 405
 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 BUS NMT
2 431
"Text12"
""
1 41 433 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
411 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 43 435 119 451
0 2 0 "s" 0 0 0 64 0 0  43 435
 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 BUS Sync
2 433
"Text13"
""
1 41 463 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
413 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 43 465 149 490
0 2 0 "s" 0 0 0 64 0 0  43 465
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 17 BUS Sync Interval
2 435
"Text14"
""
1 41 493 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
415 0 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 43 495 169 520
0 2 0 "s" 0 0 0 64 0 0  43 495
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 19 Node Guard Interval
2 437
"Text15"
""
1 311 468 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
417 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 313 470 469 486
0 2 0 "s" 0 0 0 64 0 0  313 470
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 22 Port Error Description
2 438
"Text16"
""
1 451 468 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
418 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}

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


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 453 470 509 486
1 2 0 "s" 0 0 0 64 0 0  453 470
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 445
"Text6"
""
1 311 216 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
424 0 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 313 218 448 234
0 2 0 "s" 0 0 0 64 0 0  313 218
 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 21 Specific Error Code 1
2 446
"CCieEcod1"
""
1 450 217 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
425 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 219 508 235
1 2 0 "s" 0 0 0 64 0 0  452 219
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 448
"Text17"
""
1 311 246 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
427 0 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 313 248 448 264
0 2 0 "s" 0 0 0 64 0 0  313 248
 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 21 Specific Error Code 2
2 449
"CCieEcod2"
""
1 450 247 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
428 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}



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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 249 508 265
1 2 0 "s" 0 0 0 64 0 0  452 249
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 451
"Text19"
""
1 311 276 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
430 0 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 313 278 448 294
0 2 0 "s" 0 0 0 64 0 0  313 278
 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 21 Specific Error Code 3
2 452
"CCieEcod3"
""
1 450 277 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
431 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}



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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 279 508 295
1 2 0 "s" 0 0 0 64 0 0  452 279
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 454
"Text21"
""
1 311 306 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
433 0 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 313 308 448 324
0 2 0 "s" 0 0 0 64 0 0  313 308
 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 21 Specific Error Code 4
2 455
"CCieEcod4"
""
1 450 307 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
434 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  
}



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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 309 508 325
1 2 0 "s" 0 0 0 64 0 0  452 309
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 457
"Text23"
""
1 311 336 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
436 0 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 313 338 448 354
0 2 0 "s" 0 0 0 64 0 0  313 338
 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 21 Specific Error Code 5
2 458
"CCieEcod5"
""
1 450 337 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
437 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{

}


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 339 508 355
1 2 0 "s" 0 0 0 64 0 0  452 339
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 461
"Text26"
""
1 311 410 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
440 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 313 412 389 428
0 2 0 "s" 0 0 0 64 0 0  313 412
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 7 Bus NMT
2 462
"Text27"
""
1 451 410 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
441 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

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

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

}

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


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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 453 412 509 428
1 2 0 "s" 0 0 0 64 0 0  453 412
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 465
"Text29"
""
1 310 69 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
444 0 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 312 71 388 87
0 2 0 "s" 0 0 0 64 0 0  312 71
 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 CC NMT
2 469
"Text28"
""
1 310 99 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
445 0 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 312 101 388 117
0 2 0 "s" 0 0 0 64 0 0  312 101
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 10 ELMB State
2 473
"CCieStat"
""
1 450 97 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
449 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}

main()
{


  
}



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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Crate00.Controller.NMT}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 452 99 508 115
1 2 0 "s" 0 0 0 64 0 0  452 99
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 10 ELMBstatus
2 476
"Text25"
""
1 16 101 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
451 0 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 18 103 94 119
0 2 0 "s" 0 0 0 64 0 0  18 103
 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 lifeguarding
2 477
"Text2"
""
1 30 150 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
452 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 32 152 358 168
0 2 0 "s" 0 0 0 64 0 0  32 152
 1
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 55 time             crate    ecod      1        2        3
14 430
"TextField2"
""
1 161 402 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
410 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 ""
159 400 223 426
3 "s" 0 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.Bus_NMT.Send:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTmops1:Bus00.Bus_NMT.Send:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


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

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.Bus_NMT.Send:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"SCTmops1:Bus00.Bus_NMT.Send:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Bus00.Bus_NMT.Send}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {SCTmops1:Bus00.Bus_NMT.Send}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp;

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

  sDp = dpSubStr(\"SCTmops1:Bus00.Bus_NMT.Send:_original.._value\",  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(\"SCTmops1:Bus00.Bus_NMT.Send:_original.._value\", sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Bus00.Bus_NMT.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 432
"TextField3"
""
1 162 432 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
412 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 ""
160 430 224 456
3 "s" 0 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.BusSync.Send:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTmops1:Bus00.BusSync.Send:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


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

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.BusSync.Send:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"SCTmops1:Bus00.BusSync.Send:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Bus00.BusSync.Send}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {SCTmops1:Bus00.BusSync.Send}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp;

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

  sDp = dpSubStr(\"SCTmops1:Bus00.BusSync.Send:_original.._value\",  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(\"SCTmops1:Bus00.BusSync.Send:_original.._value\", sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Bus00.BusSync.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 434
"TextField4"
""
1 162 462 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
414 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 ""
160 460 224 486
3 "s" 0 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.BusSyncInt.Send:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTmops1:Bus00.BusSyncInt.Send:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


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

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.BusSyncInt.Send:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"SCTmops1:Bus00.BusSyncInt.Send:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Bus00.BusSyncInt.Send}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {FALSE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {SCTmops1:Bus00.BusSyncInt.Send}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp;

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

  sDp = dpSubStr(\"SCTmops1:Bus00.BusSyncInt.Send:_original.._value\",  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(\"SCTmops1:Bus00.BusSyncInt.Send:_original.._value\", sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Bus00.BusSyncInt.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

14 436
"TextField5"
""
1 162 492 E E E 1 E 1 E N "_WindowText" E N {153,204,255} E E
 E E
416 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 ""
160 490 224 516
3 "s" 0 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
  EP_setInvalid();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.Bus_NGT.Send:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTmops1:Bus00.Bus_NGT.Send:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}


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

EP_setInvalid()
{
dyn_errClass err;

  if( dpSubStr( \"SCTmops1:Bus00.Bus_NGT.Send:_online.._invalid\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setInvalidCB\",
            \"SCTmops1:Bus00.Bus_NGT.Send:_online.._invalid\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTmops1:Bus00.Bus_NGT.Send}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
// SimpleCtrlScript {EP_setInvalid}
// DP {SCTmops1:Bus00.Bus_NGT.Send}
// DPConfig {:_online.._invalid}
// DPType {bool}
// Attribut {color}
// SimpleCtrlScriptEnd {EP_setInvalid}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;
string sFormat, sDp;

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

  sDp = dpSubStr(\"SCTmops1:Bus00.Bus_NGT.Send:_original.._value\",  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(\"SCTmops1:Bus00.Bus_NGT.Send:_original.._value\", sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Bus00.Bus_NGT.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

13 463
"Button9"
""
1 520 410 E E E 1 E 1 E N "_3DText" E N {102,153,204} E E
 E E
442 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
518 408 542 432
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
25 466
"err_msg"
""
1 14 -1646 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
445 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
28 168 282 342
E E 0 0 1 6 1 "#1" 0 1 -1 "s" 1
LANG:1 2 #1
E1
LANG:1 0 
 70 "#2" 0 1 -1 "s" 1
LANG:1 2 #2
E1
LANG:1 0 
 30 "#3" 0 1 0 "s" 1
LANG:1 2 #3
E1
LANG:1 0 
 50 "#4" 0 1 -1 "s" 1
LANG:1 2 #4
E1
LANG:1 0 
 30 "#5" 0 1 -1 "s" 1
LANG:1 2 #5
E1
LANG:1 0 
 30 "#6" 0 1 -1 "s" 1
LANG:1 2 #6
E1
LANG:1 0 
 30 25 25 "" 1 1
LANG:1 2 #1
8 20 1
LANG:1 118 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,0,0,0,0,Courier New
0 ""
0 1 1 0 0
1 0
13 467
"Button10"
""
1 521 68 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
445 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
519 66 543 90
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
13 470
"Button1"
""
1 520 100 E E E 1 E 1 E N "_3DText" E N {204,204,153} E E
 E E
446 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 105 -microsoft windows-Arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,700,0,0,0,0,3,2,1,34,Arial
0 ""
518 98 542 122
T 
1
LANG:1 1 !
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_childPanelOn();
}

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

// SimpleCtrlScript {EP_childPanelOn}
// Function {ChildPanelOnCentral}
// File {subpanels/BinStat.pnl}
// Panel {}
// Parent {}
// Module {}
// OffsetX {0}
// OffsetY {0}
// SimpleCtrlScriptEnd {EP_childPanelOn}
" 0
 E E E
14 472
"TextField6"
""
1 87 65 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
448 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 ""
85 63 149 89
3 "s" 0 0 0 0 0 0 
E
E
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

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

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%d\", iNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  sprintf(datapoint,\"SCTmops1:Crate%02d.Controller.CCie_NMT.Send:_original.._value\",crate);
  sDp = dpSubStr(datapoint,  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(datapoint, sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Controller.CCie_NMT.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

13 474
"Button4"
""
1 590 320 E E E 1 E 1 E N "_3DText" E N {255,255,204} E E
 E E
450 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
588 318 672 352
T 
1
LANG:1 4 -999
"//Function (NoName)_EventInitialize()
main()
{
dpSet(\"SCTmops1:Info.Name:_original.._value\", \"- MPS_DP - Starting up...\");
DebugN(\"trial\");
LoadX();
delay(1,0);
dpSet(\"SCTmops1:Info.Name:_original.._value\", \"- MPS_DP - ready\");
//     Read();
//   dpConnect(\"setOpening\",\"setOpening.trigger:_online.._value\");
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",0);
 //  Load();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",1);
 //  Configure();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",2);
//   Monitor();
//   dpSet(\"Crate00.DDC.DCS_STATES:_original.._value\",3);
   
//   Configure();
//   DebugN(\"configure\");

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

}


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

void LoadX() {

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

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

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

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

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

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

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

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

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

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

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



}






//Read all monitored values from ELMB

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

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

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

//

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

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

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

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

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

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

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


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


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

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

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

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

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

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

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

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


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

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

" 0
 E E E
14 475
"TextField1"
""
1 86 101 E E E 1 E 1 E N "_WindowText" E N {255,255,204} E E
 E E
450 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 ""
84 99 148 125
3 "s" 0 0 0 0 0 0 
E
E
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldOut();
}

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

  getValue(\"\", \"text\", sTmp);
  sscanf(sTmp, \"%d\", iNewValue);
  dpGet(\"Crate.Numb:_online.._value\",crate);
  
  sprintf(datapoint,\"SCTmops1:Crate%02d.Controller.CClifeguard.Send:_original.._value\",crate);
  sDp = dpSubStr(datapoint,  DPSUB_SYS_DP_EL);
  if ( strpos(sDp,\".\") < 1 )
    sDp += \".\";

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

  dpSetWait(datapoint, sTmp);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTmops1:Crate00.Controller.CCie_NMT.Send}
// Config {:_original.._value}
// DPType {int}
// SimpleCtrlScriptEnd {EP_textFieldOut}
" 0

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