mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
added auto comp disable feature
This commit is contained in:
@ -4595,6 +4595,22 @@ int multiSlsDetector::powerChip(int ival){
|
||||
}
|
||||
|
||||
|
||||
int multiSlsDetector::setAutoComparatorDisableMode(int ival) {
|
||||
int ret=OK, ret1=OK;
|
||||
|
||||
for (int i=0; i<thisMultiDetector->numberOfDetectors; ++i) {
|
||||
if (detectors[i]) {
|
||||
ret=detectors[i]->setAutoComparatorDisableMode(ival);
|
||||
if(detectors[i]->getErrorMask())
|
||||
setErrorMask(getErrorMask()|(1<<i));
|
||||
if (ret==FAIL)
|
||||
ret1=FAIL;
|
||||
}
|
||||
}
|
||||
return ret1;
|
||||
}
|
||||
|
||||
|
||||
int multiSlsDetector::loadSettingsFile(string fname, int imod) {
|
||||
int ret=OK;
|
||||
|
||||
|
Reference in New Issue
Block a user