mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
eiger server bug fix: get dacs conversion wrong
This commit is contained in:
parent
f4fa19b559
commit
d2e4adf483
Binary file not shown.
@ -1092,7 +1092,7 @@ int getDAC(enum DACINDEX ind, int mV) {
|
||||
}
|
||||
int voltage = -1;
|
||||
// dac units to voltage
|
||||
ConvertToDifferentRange(DAC_MIN_MV, DAC_MAX_MV, LTC2620_MIN_VAL, LTC2620_MAX_VAL,
|
||||
ConvertToDifferentRange(LTC2620_MIN_VAL, LTC2620_MAX_VAL, DAC_MIN_MV, DAC_MAX_MV,
|
||||
(detectorModules)->dacs[ind], &voltage);
|
||||
FILE_LOG(logDEBUG1, ("Getting DAC %d : %d dac (%d mV)\n",ind, (detectorModules)->dacs[ind], voltage));
|
||||
return voltage;
|
||||
|
@ -5,6 +5,6 @@
|
||||
#define APIRECEIVER 0x190604
|
||||
#define APIGUI 0x190405
|
||||
#define APICTB 0x190604
|
||||
#define APIEIGER 0x190604
|
||||
#define APIJUNGFRAU 0x190604
|
||||
#define APIGOTTHARD 0x190604
|
||||
#define APIGOTTHARD 0x190604
|
||||
#define APIEIGER 0x190702
|
||||
|
Loading…
x
Reference in New Issue
Block a user