This commit is contained in:
maliakal_d 2020-05-20 12:04:48 +02:00
parent 3ebb1fca02
commit dc8f67cd7b
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include "logger.h"
#include "sls_detector_defs.h"
#include <QAbstractButton>

View File

@ -25,6 +25,7 @@ class qTabMeasurement : public QWidget, private Ui::TabMeasurementObject {
void SetNumTriggers(int val);
void SetNumBursts(int val);
void SetNumSamples(int val);
void SetNumGates(int val);
void SetExposureTime();
void SetAcquisitionPeriod();
void SetDelay();

View File

@ -197,11 +197,11 @@ void qTabMeasurement::SetupTimingMode() {
item[(int)BURST_TRIGGER]->setEnabled(false);
item[(int)TRIGGER_GATED]->setEnabled(false);
switch (det->getDetectorType().squash()) {
case EIGER:
case slsDetectorDefs::EIGER:
item[(int)GATED]->setEnabled(true);
item[(int)BURST_TRIGGER]->setEnabled(true);
break;
case MYTHEN3:
case slsDetectorDefs::MYTHEN3:
item[(int)GATED]->setEnabled(true);
item[(int)TRIGGER_GATED]->setEnabled(true);
break;
@ -498,8 +498,8 @@ void qTabMeasurement::GetExposureTime() {
spinExpTime->setValue(-1);
bool inconsistentGateValues = false;
Result<ns> retval;
if (det->getDetectorType().squash() == MYTHEN3) {
std::chrono::nanoseconds retval;
if (det->getDetectorType().squash() == slsDetectorDefs::MYTHEN3) {
auto retvals = det->getExptimeForAllGates().tsquash(
"Inconsistent exposure time for all detectors.");
// all gates have same value