High Voltage index changed for jungfrau

This commit is contained in:
bergamaschi 2016-02-22 15:11:30 +01:00
parent e7a7dd8c6b
commit d8007477b5
2 changed files with 7 additions and 1 deletions

View File

@ -348,7 +348,8 @@ enum dacIndex {
E_Vcn, /**< eiger */ E_Vcn, /**< eiger */
E_Vis, /**< eiger */ E_Vis, /**< eiger */
IO_DELAY, /**< eiger io delay */ IO_DELAY, /**< eiger io delay */
ADC_VPP /**< adc vpp for jctb */ ADC_VPP, /**< adc vpp for jctb */
HV_NEW /**< new hv index for jungfrau & c */
}; };
/** /**

View File

@ -2216,6 +2216,11 @@ dacs_t slsDetector::setDAC(dacs_t val, dacIndex index, int mV, int imod){
int ret=FAIL; int ret=FAIL;
char mess[100]; char mess[100];
int arg[3]; int arg[3];
if ( (thisDetector->myDetectorType != GOTTHARD) && (thisDetector->myDetectorType != PROPIX) && index==HV_POT)
index=HV_NEW;
arg[0]=index; arg[0]=index;
arg[1]=imod; arg[1]=imod;
arg[2]=mV; arg[2]=mV;