From 5eb8fa07dbf4e1b0bf603f1059eb37581efc3faa Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 9 Sep 2025 17:36:46 +0200 Subject: [PATCH] reverted back that vthreshold dacs in m3 have min and max as 200 and 2400 (#1295) --- slsDetectorSoftware/src/Module.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index 94b9f824d..7e8ded18f 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -3579,6 +3579,10 @@ void Module::setModule(sls_detector_module &module, bool trimbits) { for (int i = 0; i != module.ndac; ++i) { int dacMin = 0; int dacMax = 2800; + if (i == M_VTH1 || i == M_VTH2 || i == M_VTH3) { + dacMin = 200; + dacMax = 2400; + } if (module.dacs[i] < dacMin) { module.dacs[i] = dacMin; out_of_range = true;