Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 242 → Rev 243

/cvi/RedPitaya/soccli/redpitaya_gui.uir
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/cvi/RedPitaya/soccli/soccli.c
43,9 → 43,10
static int export_data (int hid) {
 
char filename[0xFF],rootcmd[0xFF];
char fname[0xFF];
int type=0;
 
GetCtrlVal(panelHandle,PANEL_EXPORTNAME,filename);
GetCtrlVal(panelHandle,PANEL_EXPORTNAME,fname);
GetCtrlVal(panelHandle,PANEL_FILETYPE,&type);
 
FILE *fp;
53,6 → 54,7
switch (type) {
case 0:
case 1:
sprintf(filename,"%s_%d.root",fname, hid);
fp =fopen(filename,"wb");
if (fp) {
H1D_Write2File(hid,fp);
62,14 → 64,18
LaunchExecutable(rootcmd);
 
}
printf("Histogram %d exported to %s\n", hid, filename);
}
break;
case 2:
sprintf(filename,"%s_%d.txt",fname, hid);
fp=fopen(filename,"w");
if (fp) {
for (int i=0; i<H1D_GetNbinsX(hid); i++) fprintf(fp,"%f\n", H1D_GetBinContent(hid,i) );
for (int i=0; i<H1D_GetNbinsX(hid); i++) fprintf(fp,"%g\t%g\n", H1D_GetXBinCenter(hid,i), H1D_GetBinContent(hid,i) );
fclose(fp);
printf("Histogram %d exported to %s\n", hid, filename);
}
break;
 
}
/cvi/RedPitaya/soccli/soccli.cws
16,10 → 16,10
Project 0002 Folder User Interface Files Collapsed = True
Project 0002 FolderId 0 Collapsed = True
Drag Bar Left = 202
Window Top = 110
Window Left = 56
Window Bottom = 819
Window Right = 1511
Window Top = 137
Window Left = 84
Window Bottom = 846
Window Right = 1539
Maximized = False
Maximized Children = True
Max32 Number Of Errors = 20
66,23 → 66,23
[File 0002]
Path = "/c/home/CVI/RedPitaya/soccli/soccli.c"
File Type = "CSource"
Disk Date = 3573111222
Disk Date = 3573116054
In Projects = "1,"
Window Top = 33
Window Left = 10
Window Z-Order = 1
Source Window State = "0,232,233,232,6,22,6,0,0,152,29,290,0,301,15,2,103,0,404,0,349,595,1,9601,"
Window Z-Order = 2
Source Window State = "0,73,73,73,68,92,68,0,0,69,24,59,0,73,80,1,109,0,410,0,349,595,1,9601,"
 
[File 0003]
Path = "/c/home/CVI/RedPitaya/soccli/redpitaya_gui.uir"
File Type = "User Interface Resource"
Disk Date = 3573110898
Disk Date = 3573116831
In Projects = "1,"
Window Top = 64
Window Left = 26
Window Height = 232
Window Width = 595
Window Z-Order = 2
Window Z-Order = 1
 
[File 0004]
Path = "/c/home/CVI/RedPitaya/RedPitaya_ui.uir"
112,8 → 112,8
In Projects = ""
Window Top = 126
Window Left = 58
Window Z-Order = 6
Source Window State = "1,230,230,230,17,28,28,0,0,80,0,0,0,0,0,23,26,0,41,9,323,683,1,0,"
Window Z-Order = 4
Source Window State = "1,153,153,153,26,31,31,0,3,80,0,0,0,0,0,23,138,0,153,26,323,683,1,0,"
 
[File 0007]
Path = "/c/home/CVI/instr/DRS/drs4.c"
138,12 → 138,12
[File 0009]
Path = "/c/home/CVI/instr/HISTO/H1D.h"
File Type = "Include"
Disk Date = 3573036110
Disk Date = 3573116042
In Projects = ""
Window Top = 64
Window Left = 26
Window Z-Order = 4
Source Window State = "1,31,31,31,2,13,13,0,0,80,0,0,0,0,0,23,13,0,37,144,323,683,1,0,"
Window Z-Order = 3
Source Window State = "1,39,39,39,0,54,54,0,0,80,0,0,0,0,0,23,28,0,36,0,323,683,1,0,"
 
[File 0010]
Path = "/c/home/git/arich_daq/sa02_daq/cvi/sa02_CVI.c"
152,7 → 152,7
In Projects = ""
Window Top = 95
Window Left = 42
Window Z-Order = 3
Window Z-Order = 5
Source Window State = "1,712,712,712,2,66,2,0,3,80,0,0,0,0,0,19,697,0,712,66,271,683,1,0,"
 
[File 0011]
162,7 → 162,7
In Projects = ""
Window Top = 64
Window Left = 26
Window Z-Order = 5
Window Z-Order = 6
Source Window State = "1,21,21,21,12,15,15,0,0,80,0,0,0,0,0,19,6,0,26,21,271,683,1,0,"
 
[File 0012]