mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
mostly to do with better testing methods in eiger server and separating acquisition, inclding start receiver etc
This commit is contained in:
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user