Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 200 → Rev 201

/cvi/instr/DRS/drs4.c/drs4.c
115,7 → 115,7
buffer = (unsigned char *)malloc(buffer_size);
}
time_t t,told, tstart;
time_t t=0,told=0, tstart=0;
 
if (!DRSInit()){
time(&tstart);
127,7 → 127,7
stop_timer();
int nb = ( retval == 0 && fp ) ? DRSToBuffer( buffer , i ) : 0;
SetCtrlVal(ph,PANEL_CEVE,i);
if (retval) i--;
if (retval) i--;
if (!daq_on) break;
time(&t);
if (t!=told ) {
142,8 → 142,8
float *t=DRSGetTime(k);
float *x=DRSGetWave(k);
const int col[4]={VAL_BLACK,VAL_RED,VAL_GREEN,VAL_BLUE};
if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_DELAYED_DRAW);
const int col[4]={VAL_WHITE,VAL_RED,VAL_GREEN,VAL_BLUE};
if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_IMMEDIATE_DRAW);
plothandle[k] = PlotXY (ph, PANEL_GRAPH, t, x, 1024, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[k]);
for (int i=0 ; i<1024 ; i++) {
151,9 → 151,11
//h[k]->Fill( t[i], x[i]*1e-3);
}
}
time(&t);
}
time(&t);
printf("%d events in %2.2f min (%d s) %s",i+1, (double)(t-tstart)/60.,t-tstart, ctime(&t));
}
DRSEnd();
}