V 10
1
LANG:1 10 Real Panel
PANEL,275 70 917 611 N {51,51,204} 0
EEE E E 1 -1 -1 0  250 10
"" 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
"Text1"
""
1 290 10 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 292 12 448 31
1 2 0 "s" 0 0 0 192 0 0  292 12
 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 16 POWER SUPPLY DCS
2 1
"Text2"
""
1 20 30 E E E 1 E 1 E N {0,0,0} E N {153,204,255} E E
 E E
2 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 32 168 248
1 2 0 "s" 0 0 0 64 0 0  22 32
 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 13       REQUEST
2 2
"Text3"
""
1 20 260 E E E 1 E 1 E N {0,0,0} E N {255,255,153} E E
 E E
3 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 262 168 458
1 2 0 "s" 0 0 0 64 0 0  22 262
 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 15         READOUT
7 19
"Ellipse2"
""
1 60 200 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
20 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:Crate1.HV.HVchRamp:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTps:Crate1.HV.HVchRamp:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setBackColorCB(string dpSource, int iNewValue)
{
  if (iNewValue < 1)
    setValue(\"\", \"backCol\", \"Red\");
  else
    setValue(\"\", \"backCol\", \"{51,204,51}\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTps:Crate1.HV.HVchRamp}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {}
// DPEConfigInvalid {}
// Operator1 {less}
// Operant1 {1}
// Color1 {Red}
// Operator2 {else}
// Operant2 {}
// Color2 {\\{51,204,51\\}}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 60 200 10 10
7 22
"Ellipse7"
""
1 120 200 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
23 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:Crate1.HV.HVchRamp:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_setBackColorCB\", 
            \"SCTps:Crate1.HV.HVchRamp:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

EP_setBackColorCB(string dpSource, int iNewValue)
{
  if (iNewValue > 0)
    setValue(\"\", \"backCol\", \"Green\");
  else
    setValue(\"\", \"backCol\", \"Grey\");
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTps:Crate1.HV.HVchRamp}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {}
// DPEConfigInvalid {}
// Operator1 {bigger}
// Operant1 {0}
// Color1 {Green}
// Operator2 {else}
// Operant2 {}
// Color2 {Grey}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 120 200 10 10
2 28
"HVcaStat"
""
1 60 290 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
28 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVcaStat:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVcaStat:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVcaStat}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 62 292 128 308
1 2 0 "s" 0 0 0 64 0 0  62 292
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVcaStat
2 31
"HVchCurr"
""
1 60 330 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 {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchCurr:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchCurr:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchCurr}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 62 332 128 348
1 2 0 "s" 0 0 0 64 0 0  62 332
 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 32
"HVchStat"
""
1 60 380 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
30 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchStat:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchStat:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// 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 62 382 128 398
1 2 0 "s" 0 0 0 64 0 0  62 382
 1
1
LANG:1 119 -microsoft windows-Courier New-normal-r-normal-*-*-110-100-100-*-*-iso8859-1|-12,0,0,0,400,0,0,0,0,3,2,1,49,Courier New
0 ""
1
LANG:1 8 HVchStat
2 33
"HVchVolt"
""
1 60 420 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
31 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchVolt:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchVolt:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// 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 62 422 128 438
1 2 0 "s" 0 0 0 64 0 0  62 422
 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
21 16
"SpinButton1"
""
1 30 60 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
17 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 ""
28 58 92 84
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchRamp:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchRamp:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;

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

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

  dpSetWait(\"SCTps:Crate1.HV.HVchRamp:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

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

E

N 0 100 1 0 0 1
13 23
"Button2"
""
1 100 220 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
24 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 ""
98 218 142 242
T 
1
LANG:1 3 OFF
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;
  
  dpSetWait(\"SCTps:Crate1.HV.HVcaMask:_original.._value\", 0);
  dpSetWait(\"SCTps:Crate1.HV.HVchRamp:_original.._value\", 0);
  dpSetWait(\"SCTps:Crate1.HV.HVchTripLim:_original.._value\", 0);
  dpSetWait(\"SCTps:Crate1.HV.HVchValue:_original.._value\", 0);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate1.HV.HVchRamp}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {0}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 29
"TextField1"
""
1 100 60 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
29 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 ""
98 58 162 84
3 "3.3f" 7 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchRamp:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchRamp:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
float fNewValue;
dyn_errClass err;

  fNewValue = this.text;

  dpSetWait(\"SCTps:psCrate1.Command.setVolt:_original.._value\", fNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
  EP_textFieldOnceIn();
}

EP_textFieldOnceIn()
{
int iNewValue;

  dpGet(\"SCTps:Crate1.HV.HVchRamp:_online.._value\", iNewValue);
  setValue(\"\", \"text\", dpValToString(\"SCTps:Crate1.HV.HVchRamp:_online.._value\", iNewValue, FALSE) );
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTps:psCrate1.Command.setVolt}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
// SimpleCtrlScript {EP_textFieldOnceIn}
// DP {SCTps:Crate1.HV.HVchRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldOnceIn}
" 0

13 30
"Button1"
""
1 40 220 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
29 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 ""
38 218 82 242
T 
1
LANG:1 2 ON
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_setDP();
}

EP_setDP()
{
dyn_errClass err;

  dpSetWait(\"SCTps:Crate1.HV.HVcaMask:_original.._value\", 1);
  dpSetWait(\"SCTps:Crate1.HV.HVchRamp:_original.._value\", 1);
  dpSetWait(\"SCTps:Crate1.HV.HVchTripLim:_original.._value\", 1);
  dpSetWait(\"SCTps:Crate1.HV.HVchValue:_original.._value\", 1);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate1.HV.HVchRamp}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
21 34
"SpinButton2"
""
1 30 90 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
31 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 ""
28 88 92 114
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchTripLim:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchTripLim:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchTripLim}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;

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

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

  dpSetWait(\"SCTps:Crate1.HV.HVchTripLim:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

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

E

N 0 100 1 0 0 1
14 35
"TextField2"
""
1 100 90 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
32 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 ""
98 88 162 114
3 "3.3f" 7 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchTripLim:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchTripLim:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchTripLim}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
float fNewValue;
dyn_errClass err;

  fNewValue = this.text;

  dpSetWait(\"SCTps:psCrate1.Command.setVolt:_original.._value\", fNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
  EP_textFieldOnceIn();
}

EP_textFieldOnceIn()
{
int iNewValue;

  dpGet(\"SCTps:Crate1.HV.HVchTripLim:_online.._value\", iNewValue);
  setValue(\"\", \"text\", dpValToString(\"SCTps:Crate1.HV.HVchTripLim:_online.._value\", iNewValue, FALSE) );
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTps:psCrate1.Command.setVolt}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
// SimpleCtrlScript {EP_textFieldOnceIn}
// DP {SCTps:Crate1.HV.HVchTripLim}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldOnceIn}
" 0

21 36
"SpinButton3"
""
1 30 120 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
33 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 ""
28 118 92 144
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVcaMask:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVcaMask:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVcaMask}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;

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

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

  dpSetWait(\"SCTps:Crate1.HV.HVcaMask:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

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

E

N 0 100 1 0 0 1
14 37
"TextField3"
""
1 100 120 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
34 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 ""
98 118 162 144
3 "3.3f" 7 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVcaMask:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVcaMask:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVcaMask}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
float fNewValue;
dyn_errClass err;

  fNewValue = this.text;

  dpSetWait(\"SCTps:psCrate1.Command.setVolt:_original.._value\", fNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
  EP_textFieldOnceIn();
}

EP_textFieldOnceIn()
{
int iNewValue;

  dpGet(\"SCTps:Crate1.HV.HVcaMask:_online.._value\", iNewValue);
  setValue(\"\", \"text\", dpValToString(\"SCTps:Crate1.HV.HVcaMask:_online.._value\", iNewValue, FALSE) );
}

// SimpleCtrlScript {EP_textFieldOut}
// DP {SCTps:psCrate1.Command.setVolt}
// Config {:_original.._value}
// DPType {float}
// SimpleCtrlScriptEnd {EP_textFieldOut}
// SimpleCtrlScript {EP_textFieldOnceIn}
// DP {SCTps:Crate1.HV.HVcaMask}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldOnceIn}
" 0

21 40
"SpinButton5"
""
1 30 150 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
37 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 ""
28 148 92 174
0
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchValue:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchValue:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchValue}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

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

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;

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

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

  dpSetWait(\"SCTps:Crate1.HV.HVchValue:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

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

E

N 0 100 1 0 0 1
14 41
"TextField5"
""
1 100 150 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
38 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 ""
98 148 162 174
3 "3.3f" 7 0 0 0 0 0 
E
"// SimpleCtrlScriptStart {valid}
main()
{
  EP_textFieldIn();
}

EP_textFieldIn()
{
dyn_errClass err;

  if( dpSubStr( \"SCTps:Crate1.HV.HVchValue:_online.._value\", DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }

  dpConnect(\"EP_textFieldInCB\",
            \"SCTps:Crate1.HV.HVchValue:_online.._value\");
  err = getLastError();
  if (dynlen(err) > 0)
    setValue(\"\", \"color\", \"_dpdoesnotexist\");

}

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

// SimpleCtrlScript {EP_textFieldIn}
// DP {SCTps:Crate1.HV.HVchValue}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0

"// SimpleCtrlScriptStart {invalid}
main()
{
float fNewValue;
dyn_errClass err;

  fNewValue = this.text;

  dpSetWait(\"SCTps:psCrate1.Command.setVolt:_original.._value\", fNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
  EP_textFieldOut();
}

EP_textFieldOut()
{
int iNewValue;
dyn_errClass err;
string sTmp;

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

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

  dpSetWait(\"SCTps:Crate1.HV.HVchValue:_original.._value\", iNewValue);
  err = getLastError();
  if (dynlen(err) > 0)
    errorDialog(err);
}

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

23 17
"Trend1"
""
1 180 260 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
18 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 ""
178 258 872 502
1 E E E 1 219 N {0,0,0} 0 0 1 0 1 0 4
0 "#1_1" "SCTps:Crate1.HV.HVchStat" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" 0 0 4000 0 0 1 0 1 N "Red" 0 0 0 0 0 0 0 0
0 "#1_2" "SCTps:Crate1.HV.HVchCurr" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" 0 0 4000 0 0 1 0 1 N "blue" 0 0 0 0 0 0 0 0
0 "#1_3" "SCTps:Crate1.HV.HVcaStat" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" 0 0 4000 0 0 1 0 1 N "Green" 0 0 0 0 0 0 0 0
0 "#1_4" "SCTps:Crate1.HV.HVchVolt" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" 0 0 4000 0 0 1 0 1 N {255,51,255} 0 0 0 0 0 0 0 0
1 1 "%X" "%x" 1 1 0 0 E 1 0 0 0 90 0 10 360
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 ""
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 ""
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 ""

120 N {0,0,0} 0 0 1 0 1 150 1 5 5 1 3
0
23 42
"Trend2"
""
1 78 -37 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
39 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 ""
178 38 862 252
1 E E E 1 189 N {0,0,0} 0 0 1 0 1 0 4
0 "#1_1" "SCTps:Crate1.HV.HVchRamp" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 1 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" -1 0 0 1 0 1 N "Red" 0 0 0 0 0 0 0 0
0 "#1_2" "SCTps:Crate1.HV.HVchTripLim" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" -1 0 0 1 0 1 N "blue" 0 0 0 0 0 0 0 0
0 "#1_3" "SCTps:Crate1.HV.HVcaMask" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" -1 0 0 1 0 1 N "Green" 0 0 0 0 0 0 0 0
0 "#1_4" "SCTps:Crate1.HV.HVchValue" 0 2 0 0 1 "0 2 0.000000" "%x" 1 0 2 0 E E 1 0 0 3 2 1
LANG:1 0 
1
LANG:1 0 
1 "" "" -1 0 0 1 0 1 N {255,51,255} 0 0 0 0 0 0 0 0
1 1 "%X" "%x" 1 1 0 0 E 1 0 0 0 1 0 10 360
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 ""
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 ""
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 ""

120 N {0,0,0} 0 0 1 0 1 150 1 5 5 1 3
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