V 10
1
LANG:1 8 (NoName)
PANEL,281 114 244 200 N "_3DFace" 0
EEE E E 1 -1 -1 0  40 100
"" 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 17
"Border1"
""
1 10 150 E E E 1 E 1 E N {0,0,0} E N {204,204,255} E E
 E E
17 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 210 150
2 3
"Text2"
""
1 15 30 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
4 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 17 32 130 44
1 2 0 "s" 0 0 0 64 0 0  17 32
 1
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 8 Filename
2 4
"Text3"
""
1 16 11 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
5 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 13 101 28
0 2 0 "s" 0 0 0 192 0 0  18 13
 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 Path/Filename:
2 8
"Text5"
""
1 77 105 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
9 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 79 107 145 122
0 2 0 "s" 0 0 0 192 0 0  79 107
 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  Loop (sec):
2 12
"Text1"
""
1 77 126 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
13 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 79 128 148 143
0 2 0 "s" 0 0 0 192 0 0  79 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 12 Nb of Meas.:
2 15
"Text4"
""
1 16 65 E E E 1 E 1 E N {0,0,0} E N {255,255,255} E E
 E E
16 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 18 67 134 103
1 2 0 "s" 0 0 0 64 0 0  18 67
 1
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 21 Run specific comments
2 16
"Text6"
""
1 12 47 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
17 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 14 49 79 64
0 2 0 "s" 0 0 0 192 0 0  14 49
 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 Comments:
13 0
"Save"
""
1 140 20 E E E 1 E 1 E N {0,0,0} E N {153,204,153} E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
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 ""
138 18 202 72
T 
1
LANG:1 4 SAVE
"// SimpleCtrlScriptStart {invalid}
main()
{
int i, NbMeas, SaveTime;
shape tf1=getShape(\"NbMeas\");
shape tf2=getShape(\"SaveTime\");
 
DebugN(NbMeas, SaveTime);
  
getValue(tf1, \"text\", NbMeas);
getValue(tf2, \"text\", SaveTime);
 
  for (i=0;i<=NbMeas;i++) {
   Save();
   delay(SaveTime);
      }
DebugN(NbMeas, SaveTime);


}

Save()
{
file datalogg;
int i;
float HVcoVolt,HVcoITrp,HVcoRamp,HVchStat,HVchVolt, HVchCurr;
dyn_float value;

//getvalues and put them in string:

dpGet(\"SCTps:Crate0.Channel_0.HV.HVcoVolt:_original.._value\", HVcoVolt);
dpGet(\"SCTps:Crate0.Channel_0.HV.HVcoITrp:_original.._value\", HVcoITrp);
dpGet(\"SCTps:Crate0.Channel_0.HV.HVcoRamp:_original.._value\", HVcoRamp);
dpGet(\"SCTps:Crate0.Channel_0.HV.HVchStat:_original.._value\", HVchStat);
dpGet(\"SCTps:Crate0.Channel_0.HV.HVchVolt:_original.._value\", HVchVolt);
dpGet(\"SCTps:Crate0.Channel_0.HV.HVchCurr:_original.._value\", HVchCurr);
DebugN(HVcoVolt,HVcoITrp,HVcoRamp,HVchStat,HVchVolt,HVchCurr);

value=makeDynFloat(HVcoVolt,HVcoITrp,HVcoRamp,HVchStat,HVchVolt,HVchCurr);

//DebugN(value);

//write to file:
datalogg = fopen(\"D:/PVSSmess/Data/test.txt\", \"w+\");
for (i=1; i<=6; i++) {
    fprintfPL(datalogg, \"%f\", value[i]);
    fprintfPL(datalogg, \"%s\", \"	\");    
    }
fprintfPL(datalogg, \"%s\", \"EOF\");
fclose(datalogg);    
}


// SimpleCtrlScript {EP_setDP}
// DP1 {SCTps:Crate1.HV.HVchRamp}
// Config1 {:_original.._value}
// Type1 {int}
// Value1 {1}
// SimpleCtrlScriptEnd {EP_setDP}
" 0
 E E E
14 10
"SaveTime"
""
1 154 100 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
11 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 ""
152 98 196 124
3 "s" 0 0 0 0 0 0 
E
E
E
14 11
"NbMeas"
""
1 154 120 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E
12 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 ""
152 118 196 144
3 "s" 0 0 0 0 0 0 
E
E
E
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