mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 13:57:13 +02:00
wait state between acquistion finished and ready for next acquire in gui, check if acquiringflag is set then reset it
This commit is contained in:
@ -743,7 +743,11 @@ void* qDrawPlot::DataStartAcquireThread(void *this_pointer){
|
||||
}
|
||||
}
|
||||
|
||||
if (((qDrawPlot*)this_pointer)->myDet->getAcquiringFlag() == true) {
|
||||
((qDrawPlot*)this_pointer)->myDet->setAcquiringFlag(false);
|
||||
}
|
||||
((qDrawPlot*)this_pointer)->myDet->acquire(1);
|
||||
|
||||
return this_pointer;
|
||||
}
|
||||
|
||||
@ -1208,6 +1212,7 @@ int qDrawPlot::AcquisitionFinished(double currentProgress, int detectorStatus){
|
||||
#ifdef VERBOSE
|
||||
cout << "\nEntering Acquisition Finished with status " ;
|
||||
#endif
|
||||
emit AcquisitionFinishedSignal();
|
||||
QString status = QString(slsDetectorBase::runStatusType(slsDetectorDefs::runStatus(detectorStatus)).c_str());
|
||||
#ifdef VERBOSE
|
||||
cout << status.toAscii().constData() << " and progress " << currentProgress << endl;
|
||||
@ -1220,14 +1225,12 @@ int qDrawPlot::AcquisitionFinished(double currentProgress, int detectorStatus){
|
||||
//stop_signal = 1;//just to be sure
|
||||
emit AcquisitionErrorSignal(status);
|
||||
}
|
||||
|
||||
#ifdef VERBOSE
|
||||
//all measurements are over
|
||||
else if(currentProgress==100){
|
||||
#ifdef VERBOSE
|
||||
cout << "Acquisition Finished" << endl << endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
StartStopDaqToggle(true);
|
||||
//this lets the measurement tab know its over, and to enable tabs
|
||||
emit UpdatingPlotFinished();
|
||||
|
Reference in New Issue
Block a user