mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
solved many bugs, but cannot get data in eiger
This commit is contained in:
parent
1e8c7bd637
commit
73c97f1381
@ -189,6 +189,7 @@ void qTabAdvanced::SetupWidgetWindow(){
|
||||
|
||||
//updates roi
|
||||
cout << "Getting ROI" << endl;
|
||||
if (myDet->getDetectorsType() == slsDetectorDefs::GOTTHARD)
|
||||
updateROIList();
|
||||
|
||||
// print receiver configurations
|
||||
@ -278,11 +279,12 @@ void qTabAdvanced::Initialization(){
|
||||
|
||||
//roi
|
||||
|
||||
|
||||
if (myDet->getDetectorsType() == slsDetectorDefs::GOTTHARD) {
|
||||
connect(btnClearRoi, SIGNAL(clicked()), this, SLOT(clearROIinDetector()));
|
||||
connect(btnGetRoi, SIGNAL(clicked()), this, SLOT(updateROIList()));
|
||||
connect(btnSetRoi, SIGNAL(clicked()), this, SLOT(setROI()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@ -1317,6 +1319,7 @@ void qTabAdvanced::Refresh(){
|
||||
#ifdef VERBOSE
|
||||
cout << "Getting ROI" << endl;
|
||||
#endif
|
||||
if (myDet->getDetectorsType() == slsDetectorDefs::GOTTHARD)
|
||||
updateROIList();
|
||||
|
||||
//update alltirmbits from server
|
||||
|
@ -64,10 +64,20 @@ void qTabMeasurement::SetupWidgetWindow(){
|
||||
//Number of Triggers
|
||||
spinNumTriggers->setValue((int)myDet->setTimer(slsDetectorDefs::CYCLES_NUMBER,-1));
|
||||
//delay
|
||||
if (detType == slsDetectorDefs::EIGER) {
|
||||
lblDelay->setEnabled(false);
|
||||
spinDelay->setEnabled(false);
|
||||
comboDelayUnit->setEnabled(false);
|
||||
} else {
|
||||
time = qDefs::getCorrectTime(unit,((double)(myDet->setTimer(slsDetectorDefs::DELAY_AFTER_TRIGGER,-1)*(1E-9))));
|
||||
spinDelay->setValue(time);
|
||||
comboDelayUnit->setCurrentIndex((int)unit);
|
||||
}
|
||||
//gates
|
||||
if ((detType == slsDetectorDefs::EIGER) || (detType == slsDetectorDefs::JUNGFRAU)) {
|
||||
lblNumGates->setEnabled(false);
|
||||
spinNumGates->setEnabled(false);
|
||||
} else
|
||||
spinNumGates->setValue((int)myDet->setTimer(slsDetectorDefs::GATES_NUMBER,-1));
|
||||
//probes
|
||||
if(detType == slsDetectorDefs::MYTHEN)
|
||||
@ -274,11 +284,17 @@ void qTabMeasurement::Initialization(){
|
||||
connect(comboPeriodUnit,SIGNAL(currentIndexChanged(int)), this, SLOT(setAcquisitionPeriod()));
|
||||
//Number of Triggers
|
||||
connect(spinNumTriggers,SIGNAL(valueChanged(int)), this, SLOT(setNumTriggers(int)));
|
||||
|
||||
//Delay After Trigger
|
||||
if (detType != slsDetectorDefs::EIGER) {
|
||||
connect(spinDelay,SIGNAL(valueChanged(double)), this, SLOT(setDelay()));
|
||||
connect(comboDelayUnit,SIGNAL(currentIndexChanged(int)), this, SLOT(setDelay()));
|
||||
}
|
||||
|
||||
//Number of Gates
|
||||
if ((detType != slsDetectorDefs::EIGER) && (detType != slsDetectorDefs::JUNGFRAU))
|
||||
connect(spinNumGates,SIGNAL(valueChanged(int)), this, SLOT(setNumGates(int)));
|
||||
|
||||
//Number of Probes
|
||||
connect(spinNumProbes,SIGNAL(valueChanged(int)), this, SLOT(setNumProbes(int)));
|
||||
}
|
||||
@ -784,8 +800,11 @@ void qTabMeasurement::Refresh(){
|
||||
disconnect(spinPeriod, SIGNAL(valueChanged(double)), this, SLOT(setAcquisitionPeriod()));
|
||||
disconnect(comboPeriodUnit, SIGNAL(currentIndexChanged(int)), this, SLOT(setAcquisitionPeriod()));
|
||||
disconnect(spinNumTriggers, SIGNAL(valueChanged(int)), this, SLOT(setNumTriggers(int)));
|
||||
if (detType != slsDetectorDefs::EIGER) {
|
||||
disconnect(spinDelay, SIGNAL(valueChanged(double)), this, SLOT(setDelay()));
|
||||
disconnect(comboDelayUnit, SIGNAL(currentIndexChanged(int)), this, SLOT(setDelay()));
|
||||
}
|
||||
if ((detType != slsDetectorDefs::EIGER) && (detType != slsDetectorDefs::JUNGFRAU))
|
||||
disconnect(spinNumGates, SIGNAL(valueChanged(int)), this, SLOT(setNumGates(int)));
|
||||
|
||||
#ifdef VERBOSE
|
||||
@ -815,14 +834,30 @@ void qTabMeasurement::Refresh(){
|
||||
cout << "Getting delay after trigger, number of triggers and number of gates" << endl;
|
||||
#endif
|
||||
//delay
|
||||
//delay
|
||||
if (detType == slsDetectorDefs::EIGER) {
|
||||
lblDelay->setEnabled(false);
|
||||
spinDelay->setEnabled(false);
|
||||
comboDelayUnit->setEnabled(false);
|
||||
} else {
|
||||
lblDelay->setEnabled(true);
|
||||
spinDelay->setEnabled(true);
|
||||
comboDelayUnit->setEnabled(true);
|
||||
time = qDefs::getCorrectTime(unit,((double)(myDet->setTimer(slsDetectorDefs::DELAY_AFTER_TRIGGER,-1)*(1E-9))));
|
||||
spinDelay->setValue(time);
|
||||
comboDelayUnit->setCurrentIndex((int)unit);
|
||||
}
|
||||
//gates
|
||||
if ((detType == slsDetectorDefs::EIGER) || (detType == slsDetectorDefs::JUNGFRAU)) {
|
||||
lblNumGates->setEnabled(false);
|
||||
spinNumGates->setEnabled(false);
|
||||
} else {
|
||||
lblNumGates->setEnabled(true);
|
||||
spinNumGates->setEnabled(true);
|
||||
spinNumGates->setValue((int)myDet->setTimer(slsDetectorDefs::GATES_NUMBER,-1));
|
||||
}
|
||||
//Number of Triggers
|
||||
spinNumTriggers->setValue((int)myDet->setTimer(slsDetectorDefs::CYCLES_NUMBER,-1));
|
||||
//gates
|
||||
spinNumGates->setValue((int)myDet->setTimer(slsDetectorDefs::GATES_NUMBER,-1));
|
||||
|
||||
|
||||
#ifdef VERBOSE
|
||||
cout << "Getting file name prefix, file index, file write enable and progress index" << endl;
|
||||
@ -851,8 +886,11 @@ void qTabMeasurement::Refresh(){
|
||||
connect(spinPeriod, SIGNAL(valueChanged(double)), this, SLOT(setAcquisitionPeriod()));
|
||||
connect(comboPeriodUnit, SIGNAL(currentIndexChanged(int)), this, SLOT(setAcquisitionPeriod()));
|
||||
connect(spinNumTriggers, SIGNAL(valueChanged(int)), this, SLOT(setNumTriggers(int)));
|
||||
if (detType != slsDetectorDefs::EIGER) {
|
||||
connect(spinDelay, SIGNAL(valueChanged(double)), this, SLOT(setDelay()));
|
||||
connect(comboDelayUnit, SIGNAL(currentIndexChanged(int)), this, SLOT(setDelay()));
|
||||
}
|
||||
if ((detType != slsDetectorDefs::EIGER) && (detType != slsDetectorDefs::JUNGFRAU))
|
||||
connect(spinNumGates, SIGNAL(valueChanged(int)), this, SLOT(setNumGates(int)));
|
||||
|
||||
//timing mode - will also check if exptime>acq period and also enableprobes()
|
||||
|
Loading…
x
Reference in New Issue
Block a user