mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 16:27:13 +02:00
gui progress of receiver should be of frame index and not frames caught
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@690 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -262,12 +262,14 @@ void slsDetectorUtils::acquire(int delflag){
|
||||
setFileName(fileIO::getFileName());
|
||||
if(setReceiverOnline()==OFFLINE_FLAG){
|
||||
stopReceiver();
|
||||
*stoppedFlag=1;
|
||||
pthread_mutex_unlock(&mg);
|
||||
break;
|
||||
}
|
||||
//start receiver
|
||||
if((startReceiver() == FAIL) || (setReceiverOnline()==OFFLINE_FLAG)){
|
||||
if(startReceiver() == FAIL) {
|
||||
stopReceiver();
|
||||
*stoppedFlag=1;
|
||||
pthread_mutex_unlock(&mg);
|
||||
break;
|
||||
}
|
||||
@ -275,12 +277,12 @@ void slsDetectorUtils::acquire(int delflag){
|
||||
}
|
||||
#ifdef VERBOSE
|
||||
cout << "Acquiring " << endl;
|
||||
#endif
|
||||
#endif
|
||||
startAndReadAll();
|
||||
#ifdef VERBOSE
|
||||
cout << "finished " << endl;
|
||||
cout << "returned! " << endl;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@ -333,13 +335,14 @@ void slsDetectorUtils::acquire(int delflag){
|
||||
pthread_mutex_unlock(&mg);
|
||||
}else{
|
||||
pthread_mutex_lock(&mg);
|
||||
cout<<"going to start transmit"<<endl;
|
||||
if(startReceiverReadout() == TRANSMITTING){
|
||||
while(getReceiverStatus() != RUN_FINISHED){
|
||||
pthread_mutex_unlock(&mg);
|
||||
usleep(50000);
|
||||
pthread_mutex_lock(&mg);
|
||||
}
|
||||
}
|
||||
}cout<<"going to stop receiver"<<endl;
|
||||
stopReceiver();
|
||||
pthread_mutex_unlock(&mg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user