mostly to do with better testing methods in eiger server and separating acquisition, inclding start receiver etc

This commit is contained in:
Maliakal Dhanya
2014-11-28 14:26:47 +01:00
17 changed files with 1639 additions and 768 deletions

View File

@ -4843,10 +4843,31 @@ int multiSlsDetector::enableTenGigabitEthernet(int i){
*/
int multiSlsDetector::setCTBPattern(string fname) {
uint64_t word;
int addr=0;
FILE *fd=fopen(fname.c_str(),"r");
if (fd>0) {
while (fread(&word, sizeof(word), 1,fd)) {
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++)
if (detectors[idet]){
detectors[idet]->setCTBWord(addr,word);
}
// cout << hex << addr << " " << word << dec << endl;
addr++;
}
fclose(fd);
} else
return -1;
return addr;
}