mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
done with eiger
This commit is contained in:
@ -5040,10 +5040,12 @@ void multiSlsDetector::startReceivingData(){
|
|||||||
currentFrameIndex = d["fIndex"].GetInt();
|
currentFrameIndex = d["fIndex"].GetInt();
|
||||||
currentSubFrameIndex = d["subfnum"].GetInt();
|
currentSubFrameIndex = d["subfnum"].GetInt();
|
||||||
strcpy(currentFileName ,d["fname"].GetString());
|
strcpy(currentFileName ,d["fname"].GetString());
|
||||||
cout << ithread << "Acquisition index: " << currentAcquisitionIndex << endl;
|
#ifdef VERYVERBOSE
|
||||||
cout << ithread << "Frame index: " << currentFrameIndex << endl;
|
cout << "Acquisition index: " << currentAcquisitionIndex << endl;
|
||||||
cout << ithread << "Subframe index: " << currentSubFrameIndex << endl;
|
cout << "Frame index: " << currentFrameIndex << endl;
|
||||||
cout << ithread << "File name: " << currentFileName << endl;
|
cout << "Subframe index: " << currentSubFrameIndex << endl;
|
||||||
|
cout << "File name: " << currentFileName << endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
// close the message
|
// close the message
|
||||||
zmq_msg_close(&message);
|
zmq_msg_close(&message);
|
||||||
@ -5056,7 +5058,9 @@ void multiSlsDetector::startReceivingData(){
|
|||||||
//end of socket ("end")
|
//end of socket ("end")
|
||||||
if (len < 1024*256 ) {
|
if (len < 1024*256 ) {
|
||||||
if(!len) cprintf(RED,"Received no data in socket for %d\n", ithread);
|
if(!len) cprintf(RED,"Received no data in socket for %d\n", ithread);
|
||||||
|
#ifdef VERYVERBOSE
|
||||||
cprintf(RED,"End of socket for %d\n", ithread);
|
cprintf(RED,"End of socket for %d\n", ithread);
|
||||||
|
#endif
|
||||||
zmq_msg_close(&message);
|
zmq_msg_close(&message);
|
||||||
singleframe[ithread] = NULL;
|
singleframe[ithread] = NULL;
|
||||||
pthread_mutex_lock(&ms);
|
pthread_mutex_lock(&ms);
|
||||||
@ -5158,7 +5162,7 @@ void multiSlsDetector::readFrameFromReceiver(){
|
|||||||
|
|
||||||
//construct complete image and send to callback
|
//construct complete image and send to callback
|
||||||
while(true){
|
while(true){
|
||||||
memset(((char*)multiframe),0x0,slsdatabytes*thisMultiDetector->numberOfDetectors); //reset frame memory
|
memset(((char*)multiframe),0xFF,slsdatabytes*thisMultiDetector->numberOfDetectors); //reset frame memory
|
||||||
|
|
||||||
//post all of them to start
|
//post all of them to start
|
||||||
for(int ireadout=0; ireadout<numReadouts; ++ireadout){
|
for(int ireadout=0; ireadout<numReadouts; ++ireadout){
|
||||||
|
Reference in New Issue
Block a user