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