V 10
1
LANG:1 8 (NoName)
PANEL,464 112 544 495 N "_3DFace" 0
EEE E E 1 -1 -1 0  -1 -1
"" 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
"Text37"
""
1 410 230 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"// SimpleCtrlScriptStart {invalid}
main()
{
  EP_textFieldIn();
}

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

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

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

if( dpSubStr( datapoint, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
//dpConnect(\"EP_textFieldInCB\",channel);
dpConnect(\"EP_textFieldInCB1\",\"HVch.Numb:_original.._value\"); 
dpConnect(\"Connection\",\"HVch.Numb:_original.._value\", 
          \"Connection\",\"Crate.Numb:_original.._value\");
          
 err = getLastError();
 if (dynlen(err) > 0)
 setValue(\"\", \"color\", \"_dpdoesnotexist\");
}

Connection(string channeldp, int channel, string cratedp, int crate)
{
int crateOld,channelOld;
string datapoint;
  dpGet(\"Crate.Indx:_original.._value\", crateOld, 
         \"HVch.Indx:_original.._value\", channelOld);
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Vcc.Recv:_online.._value\",crateOld,channelOld);
  //dpDisconnect(\"EP_textFieldInCB1\",datapoint); 
  
  sprintf(datapoint,\"Crate%02d.Channel%02d.LVch_Vcc.Recv:_online.._value\",crate,channel);
  dpConnect(\"EP_textFieldInCB1\",datapoint); 
}


EP_textFieldInCB1(string dp, float Vcc)
{ 
//!int crate;
//!int hv;
string dp1,sTmp;

//!dpGet(\"Crate.Numb:_original.._value\", crate);
//!dpGet(\"HVch.Numb:_original.._value\", hv);
//!sprintf(dp1, \"Crate%02d.Channel%02d.LVch_Vcc.Recv:_online.._value\",crate, hv);
//!dpGet(dp1,fNewValue);
//DebugN(\"READOUT Vcc\",fNewValue);
//dpGet(datapoint,try);
//DebugN(\"datapoint\",datapoint,try);
sprintf(sTmp,\"%f\",Vcc);
setValue(\"\", \"text\", Vcc );

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HV0.HVcoRamp}
// DPConfig {:_online.._value}
// DPType {int}
// UseDPUnit {FALSE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 412 232 448 248
1 2 0 "s" 0 0 0 64 0 0  412 232
 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
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