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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user