Minor updates when trying the software on xbl-daq-38

Signed-off-by: Leonarski Filip <leonarski_f@xbl-daq-38.psi.ch>
This commit is contained in:
Leonarski Filip
2023-05-04 15:06:04 +02:00
parent d10201b502
commit d27faed668
3 changed files with 13 additions and 14 deletions
+11 -12
View File
@@ -9,25 +9,21 @@
void DetectorWrapper::Configure(const JFJochProtoBuf::DetectorConfig &request) {
logger.Info("Configure");
if (det.size() != request.modules_size()) {
logger.Error("Discrepancy in module number between DAQ and detector");
throw JFJochException(JFJochExceptionCategory::Detector,
"Discrepancy in module number between DAQ and detector");
}
try {
InternalStop();
if (det.size() > 0)
InternalStop();
if (request.module_hostname_size() > 0) {
if (det.size() != request.module_hostname_size()) {
logger.Error("Discrepancy in module number between DAQ and detector");
throw JFJochException(JFJochExceptionCategory::Detector,
"Discrepancy in module number between DAQ and detector");
}
std::vector<std::string> module_hostname;
for (const auto &iter: request.module_hostname())
module_hostname.push_back(iter);
logger.Info("Resetting detector module host names");
det.setHostname(module_hostname);
}
if (det.size() != request.modules_size()) {
logger.Error("Discrepancy in module number between DAQ and detector");
throw JFJochException(JFJochExceptionCategory::Detector,
"Discrepancy in module number between DAQ and detector");
}
det.setNumberofUDPInterfaces(2);
@@ -57,10 +53,13 @@ void DetectorWrapper::Configure(const JFJochProtoBuf::DetectorConfig &request) {
det.setTemperatureControl(true);
det.setThresholdTemperature(55);
det.setSynchronization(false);
det.setTimingMode(slsDetectorDefs::timingMode::TRIGGER_EXPOSURE);
det.setMaster(true, 0);
det.setSynchronization(true);
det.setTimingMode(slsDetectorDefs::timingMode::TRIGGER_EXPOSURE);
det.setAutoComparatorDisable(true);
if (!det.getPowerChip().squash(false)) {
det.setPowerChip(true);