diff --git a/slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.4 b/slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.5 similarity index 61% rename from slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.4 rename to slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.5 index 420f70f06..19f1ac075 100755 Binary files a/slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.4 and b/slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.0.0.16.5 differ diff --git a/slsDetectorSoftware/eigerDetectorServer/gitInfo.txt b/slsDetectorSoftware/eigerDetectorServer/gitInfo.txt index 0986ac158..5314965df 100644 --- a/slsDetectorSoftware/eigerDetectorServer/gitInfo.txt +++ b/slsDetectorSoftware/eigerDetectorServer/gitInfo.txt @@ -1,9 +1,9 @@ Path: slsDetectorsPackage/slsDetectorSoftware/eigerDetectorServer URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git -Repsitory UUID: d3b24894af8a588e6945240c3b80c2b7024608c4 -Revision: 295 +Repsitory UUID: 2dfbd9016b501eca6ee2c00a08e49a3f7e7990d8 +Revision: 296 Branch: 3.0-rc Last Changed Author: Dhanya_Maliakal -Last Changed Rev: 1448 -Last Changed Date: 2017-07-25 13:53:46.000000002 +0200 ./Beb.c +Last Changed Rev: 1457 +Last Changed Date: 2017-08-08 15:23:10.000000002 +0200 ./Makefile diff --git a/slsDetectorSoftware/eigerDetectorServer/gitInfoEiger.h b/slsDetectorSoftware/eigerDetectorServer/gitInfoEiger.h index a5accdc4f..c01ec39e8 100644 --- a/slsDetectorSoftware/eigerDetectorServer/gitInfoEiger.h +++ b/slsDetectorSoftware/eigerDetectorServer/gitInfoEiger.h @@ -1,11 +1,11 @@ //#define SVNPATH "" #define SVNURL "git@git.psi.ch:sls_detectors_software/sls_detector_software.git" //#define SVNREPPATH "" -#define SVNREPUUID "d3b24894af8a588e6945240c3b80c2b7024608c4" -//#define SVNREV 0x1448 +#define SVNREPUUID "2dfbd9016b501eca6ee2c00a08e49a3f7e7990d8" +//#define SVNREV 0x1457 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "Dhanya_Maliakal" -#define SVNREV 0x1448 -#define SVNDATE 0x20170725 +#define SVNREV 0x1457 +#define SVNDATE 0x20170808 // diff --git a/slsDetectorSoftware/eigerDetectorServer/slsDetectorFunctionList.c b/slsDetectorSoftware/eigerDetectorServer/slsDetectorFunctionList.c index 9d5b17a27..2bfa2ae5e 100644 --- a/slsDetectorSoftware/eigerDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorSoftware/eigerDetectorServer/slsDetectorFunctionList.c @@ -30,6 +30,7 @@ dacs_t *detectorDacs=NULL; dacs_t *detectorAdcs=NULL; int eiger_highvoltage = 0; +int eiger_theo_highvoltage = 0; int eiger_iodelay = 0; int eiger_photonenergy = 0; int eiger_dynamicrange = 0; @@ -745,22 +746,33 @@ int getADC(enum ADCINDEX ind, int imod){ int setHighVoltage(int val){ - if(val!=-1){ - eiger_highvoltage = val; - if(master){ + if (master) { + + // set + if(val!=-1){ + eiger_theo_highvoltage = val; int ret = Feb_Control_SetHighVoltage(val); if(!ret) //could not set return -2; else if (ret == -1) //outside range return -1; } + + // get + if (!Feb_Control_GetHighVoltage(&eiger_highvoltage)) { + cprintf(RED,"Warning: Could not read high voltage\n"); + return -3; + } + + // tolerance of 5 + if (abs(eiger_theo_highvoltage-eiger_highvoltage) > HIGH_VOLTAGE_TOLERANCE) { + cprintf(BLUE, "High voltage still ramping: %d\n", eiger_highvoltage); + return eiger_highvoltage; + } + return eiger_theo_highvoltage; } - if(master && !Feb_Control_GetHighVoltage(&eiger_highvoltage)){ - cprintf(RED,"Warning: Could not read high voltage\n"); - return -3; - } - return eiger_highvoltage; + return SLAVE_HIGH_VOLTAGE_READ_VAL; } diff --git a/slsDetectorSoftware/eigerDetectorServer/slsDetectorServer_defs.h b/slsDetectorSoftware/eigerDetectorServer/slsDetectorServer_defs.h index 1847b84d0..836c3aa9a 100644 --- a/slsDetectorSoftware/eigerDetectorServer/slsDetectorServer_defs.h +++ b/slsDetectorSoftware/eigerDetectorServer/slsDetectorServer_defs.h @@ -84,6 +84,8 @@ enum NETWORKINDEX {TXN_LEFT, TXN_RIGHT, TXN_FRAME,FLOWCTRL_10G}; #define MAX_SUBFRAME_EXPOSURE_VAL_IN_10NS (0x1FFFFFFF) /** 29 bit register for max subframe exposure value */ +#define SLAVE_HIGH_VOLTAGE_READ_VAL (-999) +#define HIGH_VOLTAGE_TOLERANCE (5) #endif /* SLSDETECTORSERVER_DEFS_H_ */ diff --git a/slsDetectorSoftware/gitInfo.txt b/slsDetectorSoftware/gitInfo.txt index d89dcf565..f80b69fa5 100644 --- a/slsDetectorSoftware/gitInfo.txt +++ b/slsDetectorSoftware/gitInfo.txt @@ -1,9 +1,9 @@ Path: slsDetectorsPackage/slsDetectorSoftware URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_software.git -Repsitory UUID: ef36cb7a54e1ae34ad1e85a46da6c121902108e6 -Revision: 1451 +Repsitory UUID: 2dfbd9016b501eca6ee2c00a08e49a3f7e7990d8 +Revision: 1452 Branch: 3.0-rc Last Changed Author: Dhanya_Maliakal -Last Changed Rev: 1456 -Last Changed Date: 2017-08-08 18:21:02.000000002 +0200 ./multiSlsDetector/multiSlsDetector.cpp +Last Changed Rev: 1457 +Last Changed Date: 2017-08-09 11:36:51.000000002 +0200 ./multiSlsDetector/multiSlsDetector.cpp diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp index b0d06c481..f4a4cc5ec 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp @@ -3009,16 +3009,24 @@ dacs_t multiSlsDetector::setDAC(dacs_t val, dacIndex idac, int mV, int imod) { for(int idet=posmin; idetgetErrorMask()) setErrorMask(getErrorMask()|(1<