merge developer

This commit is contained in:
Dhanya Maliakal 2017-07-03 17:42:06 +02:00
commit 374b07a126
6 changed files with 23 additions and 28 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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);
/**

View File

@ -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
//

View File

@ -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);

View File

@ -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