V 10
1
LANG:1 8 (NoName)
PANEL,265 176 655 258 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 250 E E E 1 E 1 E N {0,0,0} E N {255,255,204} 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 640 250
2 37
"Text3"
""
1 10 10 E E E 1 E 1 E N {0,0,0} E N {204,204,153} 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 638 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
"StatExp"
""
1 375 94 E E E 1 E 1 E N {0,0,0} E N {255,255,204} 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 377 96 631 216
0 2 0 "s" 0 0 0 192 0 0  377 96
 8
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 37 7   Hwon - Channel Standby (relay on)
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 31 6   Swon - Channel output is on
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 3 5  
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 28 4   Output over voltage trip
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 48 3   Over current trip Iout > 1.5 (stay stand by)
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 48 2   Module over temperature trip (stay stand by)
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 1   Communication error Vdd
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 0   Communication error Vcc
7 67
"Ellipse1"
""
1 75 100 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"
"main()
{
  EP_setBackColor();
}



EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x080) >> 0) && !((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x080) >> 0) && !((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 75 100 5 5
7 68
"Ellipse2"
""
1 75 175 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"
"main()
{
  EP_setBackColor();
}


EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x004) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x004) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}



" 0
 E 0 1 1 0 1 E U  1 E 75 175 5 5
7 69
"Ellipse3"
""
1 75 190 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"
"main()
{
  EP_setBackColor();
}






EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x002) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x002) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}


" 0
 E 0 1 1 0 1 E U  1 E 75 190 5 5
7 71
"Ellipse5"
""
1 75 205 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x001) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x001) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}


// SimpleCtrlScript {EP_setBackColor}
// DP {Crate00.Channel00.LVchStat.Recv}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {Crate00.Channel00.LVchStat.Recv}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {less}
// Operant1 {1}
// Color1 {Black}
// Operator2 {else}
// Operant2 {}
// Color2 {white}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 75 205 5 5
7 72
"Ellipse6"
""
1 75 160 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x008) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x008) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}

" 0
 E 0 1 1 0 1 E U  1 E 75 160 5 5
7 73
"Ellipse7"
""
1 75 145 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"
"main()
{
  EP_setBackColor();
}



EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x010) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x010) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}


" 0
 E 0 1 1 0 1 E U  1 E 75 145 5 5
7 74
"Ellipse8"
""
1 75 130 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
  if ((iNewValue & 0x020) >> 0) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((iNewValue & 0x020) >> 0) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}
" 0
 E 0 1 1 0 1 E U  1 E 75 130 5 5
7 75
"Ellipse9"
""
1 75 115 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x040) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x040) >> 0)&& !((iNewValue & 0x020) >> 0)) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}



" 0
 E 0 1 1 0 1 E U  1 E 75 115 5 5
2 76
"StatusLVdec"
""
1 20 59 E E E 1 E 1 E N {0,0,0} E N {255,255,204} 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;
  int crate, channel,i, value;
  int crateold, channelold;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPchannel=\"HVch.Numb:_original.._value\";
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate,
        DPchannel, channel);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold,
        \"HVch.Indx:_original.._value\", channelold);

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crateold, channelold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  //DebugN(\"DP connect\",DPchannel,DPcrate);
  dpConnect(\"ConnectSelect\", DPcrate, DPchannel);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold,
      \"HVch.Indx:_original.._value\", channelold);

  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crateold,channelold);
  //DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);     
  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate,channel);
  dpConnect(\"ConnectValue\",DPvalue); 
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue;
  int crate,channel;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);

  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate,channel);
  dpGet(DPvalue,value);
  DebugN(\"crate\",crate,channel,value);
  setValue(\"\", \"text\", value);

}

// SimpleCtrlScript {EP_textFieldIn}
// DP {Crate1.HVchVolt}
// DPConfig {:_online.._value}
// DPType {float}
// UseDPUnit {TRUE}
// UseDPFormat {TRUE}
// SimpleCtrlScriptEnd {EP_textFieldIn}
" 0
 E 0 1 1 0 1 E U  1 E 22 61 46 78
1 2 0 "s" 0 0 0 64 0 0  22 61
 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 78
"Text110"
""
1 20 40 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 22 42 78 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 10 Dec    Hex
2 79
"Text2"
""
1 391 74 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 393 76 553 88
0 2 0 "s" 0 0 0 64 0 0  393 76
 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 If Fail = 1 (look at bit 5)
2 80
"Text4"
""
1 85 90 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
74 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 87 92 348 212
0 2 0 "s" 0 0 0 192 0 0  87 92
 8
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 37 7   Hwon - Channel Standby (relay on)
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 31 6   Swon - Channel output is on
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 28 5   Fail - Channel Breakdown
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 12 4   Not used
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 47 3   Limit - Current limitation of Vpin or VCSEL
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 46 2   Twar - Detector module temperature warning
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 40 1   OTS1 - Open temperature sensor 1or 0
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 40 0   OTS0 - Open temperature sensor 1or 0
2 81
"Text5"
""
1 85 70 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
75 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 87 72 233 88
0 2 0 "s" 0 0 0 64 0 0  87 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 29 If Fail = 0 - (look at bit 5)
7 82
"Ellipse4"
""
1 366 103 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
75 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x080) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x080) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 366 103 5 5
7 83
"Ellipse10"
""
1 366 178 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
76 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x004) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x004) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 366 178 5 5
7 84
"Ellipse11"
""
1 366 193 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
77 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x002) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x002) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 366 193 5 5
7 85
"Ellipse12"
""
1 366 208 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x001) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x001) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}

// SimpleCtrlScript {EP_setBackColor}
// DP {SCTmops1:Crate00.Channel00.LVchStat.Recv}
// DPConfig {:_online.._value}
// DPType {int}
// AlertHdl {FALSE}
// DPEInvalid {Crate00.Channel00.LVchStat.Recv}
// DPEConfigInvalid {:_online.._invalid}
// Operator1 {less}
// Operant1 {1}
// Color1 {Black}
// Operator2 {else}
// Operant2 {}
// Color2 {white}
// SimpleCtrlScriptEnd {EP_setBackColor}
" 0
 E 0 1 1 0 1 E U  1 E 366 208 5 5
7 86
"Ellipse13"
""
1 366 163 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x008) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x008) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 366 163 5 5
7 87
"Ellipse14"
""
1 366 148 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x010) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x010) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}" 0
 E 0 1 1 0 1 E U  1 E 366 148 5 5
7 88
"Ellipse15"
""
1 366 133 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
  if ((iNewValue & 0x020) >> 0) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if ((iNewValue & 0x020) >> 0) {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}
" 0
 E 0 1 1 0 1 E U  1 E 366 133 5 5
7 89
"Ellipse16"
""
1 366 118 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"
"main()
{
  EP_setBackColor();
}

EP_setBackColor()
{
dyn_errClass err;
int hv, channel, crate, flag,iNewValue;
string datapoint1, datapoint2;

dpGet(\"HVch.Numb:_original.._value\", hv);
dpGet(\"Crate.Numb:_original.._value\", crate);
sprintf(datapoint1, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate, hv);
sprintf(datapoint2, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._invalid\",crate, hv);

//DebugN(datapoint1, datapoint2);
//dpGet(datapoint1, flag);
DebugN(flag, \"flag\");

  if( dpSubStr( datapoint1, DPSUB_DP_EL ) == \"\" )
  {
    setValue(\"\", \"color\", \"_dpdoesnotexist\");
    return;
  }
  
  dpGet(datapoint1,iNewValue);
 if (((iNewValue & 0x040) >> 0) && ((iNewValue & 0x020) >> 0))
  {
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
  dpConnect(\"EP_setBackColorCB\", 
            datapoint1,
            datapoint2);
  err = getLastError();
  if (dynlen(err) > 0)
  setValue(\"\", \"color\", \"_dpdoesnotexist\");
  }
}


EP_setBackColorCB(string dpSource, int iNewValue, string dpInvalid, bool boInvalid)
{
  if (boInvalid)
    setValue(\"\", \"backCol\", \"_invalid\");
  else if (((iNewValue & 0x040) >> 0) && ((iNewValue & 0x020) >> 0)){
    setValue(\"\", \"backCol\", \"Black\");
    }
  else {
    setValue(\"\", \"backCol\", \"white\");
    }
}
" 0
 E 0 1 1 0 1 E U  1 E 366 118 5 5
2 111
"Text11"
""
1 392 124 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
103 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 394 126 600 142
0 2 0 "s" 0 0 0 64 0 0  394 126
 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 23 FAIL -Channel Breakdown
2 121
"Text1"
""
1 52 59 E E E 1 E 1 E N {0,0,0} E N {255,255,204} E E
 E E
113 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;
  int crate, channel,i, value;
  int crateold, channelold;
  string DPchannel, DPcrate, DPvalue;

  //Make addresses for the crate and channel numbers
  DPchannel=\"HVch.Numb:_original.._value\";
  DPcrate=\"Crate.Numb:_original.._value\";

  //Get value of new selected crate and channel number
  dpGet(DPcrate, crate,
        DPchannel, channel);
  //Get values of old selected crate and channel number
  dpGet(\"Crate.Indx:_original.._value\", crateold,
        \"HVch.Indx:_original.._value\", channelold);

  //Make address of the status value
  sprintf(DPvalue, \"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crateold, channelold);

  //Connect the output to all changes to datapoints from value crate and channel select
  dpConnect(\"ConnectValue\",DPvalue);
  //DebugN(\"DP connect\",DPchannel);
  dpConnect(\"ConnectSelect\", DPcrate, DPchannel);
   
  //Error function                    
  err = getLastError();
  if (dynlen(err) > 0)
      setValue(\"\", \"color\", \"_dpdoesnotexist\");

  //Set Colour to lilac when  datapoint not excisting
  if (dpSubStr( DPvalue, DPSUB_DP_EL ) == \"\" )
     {
      setValue(\"\", \"color\", \"_dpdoesnotexist\");
      return;
     } 
 
}


ConnectSelect(string dp, int iNewValue)
{
  int crateold, channelold, crate, channel;
  string DPvalueold, DPvalue;

  //Disconnect old datapoint
  dpGet(\"Crate.Indx:_original.._value\", crateold,
      \"HVch.Indx:_original.._value\", channelold);

  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crateold,channelold);
  //DebugN(\" DPvalue\",DPvalue);
  dpDisconnect(\"ConnectValue\", DPvalue); 

  //Connect new datapoint  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);
        
  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate,channel);
  dpConnect(\"ConnectValue\",DPvalue); 
}

ConnectValue(string dp, float fNewValue)
{ 
  string DPvalue, xTmp;
  int crate,channel;
  float value;
  
  dpGet(\"Crate.Numb:_original.._value\", crate,
        \"HVch.Numb:_original.._value\", channel);

  sprintf(DPvalue,\"Crate%02d.Channel%02d.LVchStat.Recv:_online.._value\",crate,channel);
  dpGet(DPvalue,value);

  //Display in hexadecimal
  sprintf(xTmp,\"%x\", value);
  setValue(\"\", \"text\", xTmp);
  //DebugN(\"displayed datapoint\",datapoint);

}

" 0
 E 0 1 1 0 1 E U  1 E 54 61 78 78
1 2 0 "s" 0 0 0 64 0 0  54 61
 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
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