mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
included detailed error of settings file could not find
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@655 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
3098664c8f
commit
13189b6414
@ -37,8 +37,9 @@ using namespace std;
|
||||
#define COULDNOT_SET_ROI 0x0000000000000004ULL
|
||||
#define RECEIVER_READ_FREQUENCY 0x0000000000000008ULL
|
||||
#define SETTINGS_NOT_SET 0x0000000000000010ULL
|
||||
#define COULDNOT_START_RECEIVER 0x0000000000000020ULL // default error like starting threads
|
||||
#define COULDNOT_STOP_RECEIVER 0x0000000000000040ULL
|
||||
#define SETTINGS_FILE_NOT_OPEN 0x0000000000000020ULL
|
||||
#define COULDNOT_START_RECEIVER 0x0000000000000040ULL // default error like starting threads
|
||||
#define COULDNOT_STOP_RECEIVER 0x0000000000000080ULL
|
||||
|
||||
/** @short class returning all error messages for error mask */
|
||||
class errorDefs {
|
||||
@ -99,6 +100,9 @@ public:
|
||||
if(slsErrorMask&SETTINGS_NOT_SET)
|
||||
retval.append("Could not set settings.\n");
|
||||
|
||||
if(slsErrorMask&SETTINGS_FILE_NOT_OPEN)
|
||||
retval.append("Could not open settings file. Verify if it exists.\n");
|
||||
|
||||
if(slsErrorMask&COULDNOT_START_RECEIVER)
|
||||
retval.append("Could not start receiver.\n");
|
||||
|
||||
|
@ -2936,8 +2936,8 @@ slsDetectorDefs::detectorSettings slsDetector::setSettings( detectorSettings ise
|
||||
readCalibrationFile(calfname,myMod->gain, myMod->offset);
|
||||
setModule(*myMod);
|
||||
}else{
|
||||
std::cout << "Could not set settings" << endl;
|
||||
setErrorMask((getErrorMask())|(SETTINGS_NOT_SET));
|
||||
std::cout << "Could not open settings file" << endl;
|
||||
setErrorMask((getErrorMask())|(SETTINGS_FILE_NOT_OPEN));
|
||||
return thisDetector->currentSettings;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user