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);
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
"count_time_us": "980 us",
|
||||
"spot_finding_period_us": "5 ms",
|
||||
"preview_period_us": "1 s",
|
||||
"ipv4_subnet": "10.10.85.0"
|
||||
"detector_ipv4": "10.10.85.0"
|
||||
},
|
||||
"detectors": [
|
||||
{
|
||||
|
||||
@@ -108,7 +108,7 @@ int main(int argc, char **argv) {
|
||||
logger.Info("");
|
||||
for (int i = 0; i < nstreams; i++) {
|
||||
auto stalls_hbm = output.device_statistics(i).fpga_status().stalls_hbm();
|
||||
auto stalls_host = output.device_statistics(i).fpga_status().stalls_hbm();
|
||||
auto stalls_host = output.device_statistics(i).fpga_status().stalls_host();
|
||||
|
||||
uint64_t throughput_MBs = nimages * nmodules * RAW_MODULE_SIZE*sizeof(uint16_t) * clock_MHz / (nimages * nmodules * 128 * 128 + stalls_hbm);
|
||||
double performance = static_cast<double>(throughput_MBs) / 1000;
|
||||
|
||||
Reference in New Issue
Block a user