mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
gotthard2: soft limit to list
This commit is contained in:
parent
4b987abf41
commit
21ce0055b2
Binary file not shown.
@ -179,7 +179,7 @@ void setupDetector() {
|
||||
FILE_LOG(logINFO, ("This Server is for 1 Gotthard2 module \n"));
|
||||
|
||||
// hv
|
||||
DAC6571_SetDefines(HV_SOFT_MAX_VOLTAGE, HV_HARD_MAX_VOLTAGE, HV_DRIVER_FILE_NAME);
|
||||
DAC6571_SetDefines(HV_HARD_MAX_VOLTAGE, HV_DRIVER_FILE_NAME);
|
||||
setHighVoltage(DEFAULT_HIGH_VOLTAGE);
|
||||
|
||||
//Initialization of acquistion parameters
|
||||
@ -297,6 +297,10 @@ int64_t getTimeLeft(enum timerIndex ind){
|
||||
|
||||
|
||||
int setHighVoltage(int val){
|
||||
if (val > HV_SOFT_MAX_VOLTAGE) {
|
||||
val = HV_SOFT_MAX_VOLTAGE;
|
||||
}
|
||||
|
||||
#ifdef VIRTUAL
|
||||
if (val >= 0)
|
||||
highvoltage = val;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define APIMOENCH 0x190820
|
||||
#define APICTB 0x190902
|
||||
#define APIGOTTHARD 0x190902
|
||||
#define APIGOTTHARD2 0x190902
|
||||
#define APIJUNGFRAU 0x190902
|
||||
#define APIEIGER 0x190902
|
||||
#define APIMYTHEN3 0x190903
|
||||
#define APIGOTTHARD2 0x190903
|
||||
|
Loading…
x
Reference in New Issue
Block a user