Changeset 11455
- Timestamp:
- 07/18/11 17:49:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/Edd/Edd.cc
r11413 r11455 149 149 LastPath = QFileInfo(Filename).absolutePath(); 150 150 151 // Prepare temporary file for run header 152 ftruncate(fileno(Tmpfile), 0);151 // Prepare temporary file for run header 152 if (ftruncate(fileno(Tmpfile), 0) == -1) printf("Error with ftruncate() in EventScope::OpenRawFile() (%s)\n", strerror(errno)); 153 153 rewind(Tmpfile); 154 154 … … 174 174 } 175 175 } 176 176 177 177 // Print run header to display 178 178 rewind(Tmpfile); … … 181 181 DAQPage->RunHeaderDisplay->setPlainText(text); 182 182 183 // Read and display first event (must be before setting spin boxes) 184 NewEventNum(DAQPage->Event->value()); 185 183 186 // Update spin box ranges on DAQ page 184 187 DAQPage->Event->setRange(0, R->Events-1); 185 188 DAQPage->Event->setEnabled(true); 186 187 189 DAQPage->Channel->setRange(0, R->NChannels-1); 188 190 DAQPage->Chip->setRange(0, R->NChips-1); 189 DAQPage->Board->setRange(0, R->NBoards-1); 190 191 // Display first event 192 NewEventNum(DAQPage->Event->value()); 191 DAQPage->Board->setRange(0, R->NBoards-1); 193 192 } 194 193 … … 197 196 198 197 // Prepare temporary file for event header 199 ftruncate(fileno(Tmpfile), 0);198 if (ftruncate(fileno(Tmpfile), 0) == -1) printf("Error with ftruncate() in EventScope::NewEventNum() (%s)\n", strerror(errno)); 200 199 rewind(Tmpfile); 201 200 … … 206 205 return; 207 206 } 208 207 209 208 // Plot traces for event 210 209 PlotTraces(); … … 279 278 Last = time(NULL); 280 279 } 281 282 280 283 281 // Loop through event data for pixel display
Note:
See TracChangeset
for help on using the changeset viewer.