diff --git a/slsDetectorSoftware/gitInfo.txt b/slsDetectorSoftware/gitInfo.txt index 03311906e..964586c8f 100644 --- a/slsDetectorSoftware/gitInfo.txt +++ b/slsDetectorSoftware/gitInfo.txt @@ -1,9 +1,18 @@ 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 +<<<<<<< HEAD Repsitory UUID: f296ac9eb68e7681675cad9943f5054eb7f8bdce Revision: 1433 Branch: updaterec Last Changed Author: Dhanya_Maliakal Last Changed Rev: 1438 Last Changed Date: 2017-07-03 13:46:06 +0200 +======= +Repsitory UUID: 788060fd5a954e42fea270b25b8a398293013e96 +Revision: 1432 +Branch: developer +Last Changed Author: Dhanya_Maliakal +Last Changed Rev: 1437 +Last Changed Date: 2017-07-03 13:32:10 +0200 +>>>>>>> developer diff --git a/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c index ed1168368..bba46d272 100644 --- a/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -838,34 +838,11 @@ void setDAC(enum DACINDEX ind, int val, int imod, int mV, int retval[]){ int getADC(enum ADCINDEX ind, int imod){ - char tempnames[2][40]={"VRs/FPGAs Temperature", "ADCs/ASICs Temperature"}; printf("Getting Temperature for %s\n",tempnames[ind]); u_int32_t addr = GET_TEMPERATURE_TMP112_REG; - int retval = -1; -/* - u_int32_t val = 0; - { - int i; - for(i = 0; i < 10; i++) { - switch((int)ind){ - - case TEMP_FPGA: - val = (val<<1) + ((bus_r(addr) & (2)) >> 1); - break; - case TEMP_ADC: - val= (val<<1) + (bus_r(addr) & (1)); - break; - } - } - } - // or just read it - retval = ((int)val) / 4.0; - - printf("Temperature %s: %d °C\n",tempnames[ind],retval);*/ - printf("\nReal Temperature %s: %d °C\n",tempnames[ind],bus_r(addr)); - - + int retval = bus_r(addr)/10; + printf("\nReal Temperature %s: %f °C\n",tempnames[ind],(double)retval/1000.00); return retval; } diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.h b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.h index cc7a14b52..f7f2a4836 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.h +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.h @@ -929,7 +929,7 @@ class multiSlsDetector : public slsDetectorUtils { \param val value (in V) \param index DAC index \param imod module number (if -1 alla modules) - \returns current DAC value + \returns current DAC value (temperature for eiger and jungfrau in millidegrees) */ dacs_t getADC(dacIndex index, int imod=-1); /** diff --git a/slsDetectorSoftware/slsDetector/gitInfoLib.h b/slsDetectorSoftware/slsDetector/gitInfoLib.h index 9fd4cffdd..2c01c4fb2 100644 --- a/slsDetectorSoftware/slsDetector/gitInfoLib.h +++ b/slsDetectorSoftware/slsDetector/gitInfoLib.h @@ -1,11 +1,20 @@ //#define SVNPATH "" #define SVNURLLIB "git@git.psi.ch:sls_detectors_software/sls_detector_software.git" //#define SVNREPPATH "" +<<<<<<< HEAD #define SVNREPUUIDLIB "f296ac9eb68e7681675cad9943f5054eb7f8bdce" //#define SVNREV 0x1438 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTHLIB "Dhanya_Maliakal" #define SVNREVLIB 0x1438 +======= +#define SVNREPUUIDLIB "788060fd5a954e42fea270b25b8a398293013e96" +//#define SVNREV 0x1437 +//#define SVNKIND "" +//#define SVNSCHED "" +#define SVNAUTHLIB "Dhanya_Maliakal" +#define SVNREVLIB 0x1437 +>>>>>>> developer #define SVNDATELIB 0x20170703 // diff --git a/slsDetectorSoftware/slsDetector/slsDetector.h b/slsDetectorSoftware/slsDetector/slsDetector.h index a35f2b697..1d91163ff 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.h +++ b/slsDetectorSoftware/slsDetector/slsDetector.h @@ -886,7 +886,7 @@ class slsDetector : public slsDetectorUtils, public energyConversion { set dacs value \param index ADC index \param imod module number - \returns current ADC value + \returns current ADC value (temperature for eiger and jungfrau in millidegrees) */ dacs_t getADC(dacIndex index, int imod=0); diff --git a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp index a58d1e861..11b1c6a2d 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp @@ -4204,7 +4204,7 @@ string slsDetectorCommand::cmdADC(int narg, char *args[], int action) { myDet->setOnline(ONLINE_FLAG); #ifdef DACS_INT - if (myDet->getDetectorsType() == EIGER) + if (myDet->getDetectorsType() == EIGER || myDet->getDetectorsType() == JUNGFRAU) sprintf(answer,"%.2f",(double)myDet->getADC(adc)/1000.00); else sprintf(answer,"%d",myDet->getADC(adc)); #else