V 10
1
LANG:1 8 (NoName)
PANEL,427 127 756 488 N "_3DFace" 0
EEE E E 1 -1 -1 0  -506 -442
"" 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
23 1
"Trend1"
""
1 30 30 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
1 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 28 502 352
1 "
main()
{ 
int i,count;
string channel;
string name;
string addr;

//channel=\"SCTps:Item.HV:_original.._value\";
//dpConnect(\"try2\",channel);
//count=7;
//for(i=0; i<= count;i++)
 // {
 sprintf(addr,\"SCTps:Crate0.Channel_%d.HV.HVcoVolt:_original.._value\",i);
 //dpConnect(\"try2\",addr);
 // }   

}

void try2(string dp)
{
 int hv;
 string addr,name;
 string curve;
 float try;
 shape tr=getShape(\"Trend1\");
 curve=\"#1_1\";

 name=\"HV Volt\";
 dpGet(\"SCTps:Item.HV:_original.._value\", hv);
 sprintf(addr,\"SCTps:Crate0.Channel_%d.HV.HVcoVolt:_original.._value\",hv);
 setValue(\"\",\"curveLegendVisibility\", curve, true);
 setValue (\"\",\"manageLegend\", false );
 dpGet(addr,try);
 DebugN(\"OK***************\");
 DebugN(curve);
 DebugN(addr);
  DebugN(try);
 
 tr.disconnectDirectly(curve);
 tr.connectDirectly(curve, addr); 
 tr.curveLegendName(curve, name);
}

" 0
 E E 1 299 N {0,0,0} 0 0 1 0 1 0 1
0 "#1_1" "" 0 2 0 0 1 "3 2 0.0" "%x" 1 1 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 90 0 10 180
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 ""

55 N {0,0,0} 0 0 1 0 1 150 0 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