Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 228 → Rev 229

/cvi/RedPitaya/plottdc.cxx
8,8 → 8,8
printf("FILE %s opened\nheader read nb=%d\ndata size %d\n", filename, nb ,size);
//int *data = new unsigned int[size];
int *data = new unsigned int[size];
nb = fread(data, sizeof(unsigned int), size, fp);
float *data = new float[size];
nb = fread(data, sizeof(float), size, fp);
printf("FILE data elements %d\n", nb);
fclose(fp);
TFile *f = new TFile(TString(filename)+".root","RECREATE");