mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
display images received after detector done but receiver still processing in case of compression
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@719 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
a7ad6b5b66
commit
f08d4828d9
@ -3248,7 +3248,7 @@ int* slsDetector::readFrame(){
|
||||
int* slsDetector::getDataFromDetector(int *retval){
|
||||
int nel=thisDetector->dataBytes/sizeof(int);
|
||||
int n;
|
||||
|
||||
|
||||
int *r=retval;
|
||||
|
||||
|
||||
@ -3270,6 +3270,7 @@ int* slsDetector::getDataFromDetector(int *retval){
|
||||
|
||||
if (ret!=OK) {
|
||||
n= controlSocket->ReceiveDataOnly(mess,sizeof(mess));
|
||||
// if(thisDetector->receiverOnlineFlag == OFFLINE_FLAG)
|
||||
if (ret==FAIL) {
|
||||
thisDetector->stoppedFlag=1;
|
||||
std::cout<< "Detector returned: " << mess << " " << n << std::endl;
|
||||
@ -3285,7 +3286,7 @@ int* slsDetector::getDataFromDetector(int *retval){
|
||||
return NULL;
|
||||
} else {
|
||||
n=controlSocket->ReceiveDataOnly(retval,thisDetector->dataBytes);
|
||||
|
||||
|
||||
#ifdef VERBOSE
|
||||
std::cout<< "Received "<< n << " data bytes" << std::endl;
|
||||
#endif
|
||||
@ -6191,7 +6192,7 @@ int* slsDetector::readFrameFromReceiver(char* fName, int &fIndex){
|
||||
std::cout<< "slsDetector: Reading frame from receiver "<< thisDetector->dataBytes << " " <<nel <<std::endl;
|
||||
#endif
|
||||
if (connectData() == OK){
|
||||
if(!thisDetector->stoppedFlag){
|
||||
//if(!thisDetector->stoppedFlag){
|
||||
dataSocket->SendDataOnly(&fnum,sizeof(fnum));
|
||||
dataSocket->ReceiveDataOnly(&ret,sizeof(ret));
|
||||
|
||||
@ -6217,7 +6218,7 @@ int* slsDetector::readFrameFromReceiver(char* fName, int &fIndex){
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
dataSocket->Disconnect();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user