From 3098664c8f74578814f8b620d5eafb99fb0d4f8f Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 16 Aug 2013 12:59:42 +0000 Subject: [PATCH] fixed some probelems wuth scans for receiver and also scans for allframes/frameindex git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@654 951219d9-93cf-4727-9268-0efd64621fa3 --- .../eigerDetectorServer/svnInfoEiger.h | 6 +++--- .../gotthardDetectorServer/svnInfoGotthard.h | 6 +++--- .../moenchDetectorServer/svnInfoMoench.h | 6 +++--- .../mythenDetectorServer/svnInfoMythen.h | 6 +++--- slsDetectorSoftware/slsDetector/slsDetector.cpp | 2 +- slsDetectorSoftware/slsDetector/svnInfoLib.h | 6 +++--- .../slsDetectorAnalysis/postProcessing.cpp | 14 +++++++------- .../slsReceiver/slsReceiverFunctionList.cpp | 7 ++++--- .../slsReceiver/slsReceiver_funcs.cpp | 12 ++++++++---- slsDetectorSoftware/slsReceiver/svnInfoReceiver.h | 6 +++--- 10 files changed, 38 insertions(+), 33 deletions(-) diff --git a/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h b/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h index 6c72d28d2..91856e580 100644 --- a/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h +++ b/slsDetectorSoftware/eigerDetectorServer/svnInfoEiger.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/eigerDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x649 +//#define SVNREV 0x652 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x649 -#define SVNDATE 0x20130808 +#define SVNREV 0x652 +#define SVNDATE 0x20130813 // diff --git a/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h b/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h index 349956981..d48c6d45d 100644 --- a/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h +++ b/slsDetectorSoftware/gotthardDetectorServer/svnInfoGotthard.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/gotthardDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x651 +//#define SVNREV 0x653 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x651 -#define SVNDATE 0x20130812 +#define SVNREV 0x653 +#define SVNDATE 0x20130815 // diff --git a/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h b/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h index a217a0111..1d8310cac 100644 --- a/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h +++ b/slsDetectorSoftware/moenchDetectorServer/svnInfoMoench.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/moenchDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x649 +//#define SVNREV 0x652 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x649 -#define SVNDATE 0x20130808 +#define SVNREV 0x652 +#define SVNDATE 0x20130813 // diff --git a/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h b/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h index 7a462492e..c919a831b 100644 --- a/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h +++ b/slsDetectorSoftware/mythenDetectorServer/svnInfoMythen.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/mythenDetectorServer" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x649 +//#define SVNREV 0x652 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x649 -#define SVNDATE 0x20130808 +#define SVNREV 0x652 +#define SVNDATE 0x20130813 // diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 61b254206..f7dff3fdf 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -2719,7 +2719,7 @@ int slsDetector::setThresholdEnergy(int e_eV, int imod, detectorSettings isetti int ret=FAIL; char mess[100]; #ifdef VERBOSE - std::cout<< "Getting threshold energy "<< std::endl; + std::cout<< "Setting threshold energy "<< std::endl; #endif if (thisDetector->onlineFlag==ONLINE_FLAG) { if (connectControl() == OK){ diff --git a/slsDetectorSoftware/slsDetector/svnInfoLib.h b/slsDetectorSoftware/slsDetector/svnInfoLib.h index d14f12a2f..ef2d5228f 100644 --- a/slsDetectorSoftware/slsDetector/svnInfoLib.h +++ b/slsDetectorSoftware/slsDetector/svnInfoLib.h @@ -2,10 +2,10 @@ #define SVNURLLIB "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware" //#define SVNREPPATH "" #define SVNREPUUIDLIB "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x651 +//#define SVNREV 0x653 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTHLIB "l_maliakal_d" -#define SVNREVLIB 0x651 -#define SVNDATELIB 0x20130812 +#define SVNREVLIB 0x653 +#define SVNDATELIB 0x20130815 // diff --git a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp index 014a5711f..4d03f5052 100644 --- a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp +++ b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp @@ -421,7 +421,7 @@ void* postProcessing::processData(int delflag) { */ - int prevCaught=0; + int prevCaught=-1; int caught=0; bool newData=false; char currentfName[MAX_STR_LENGTH]=""; @@ -483,7 +483,7 @@ void* postProcessing::processData(int delflag) { //get data strcpy(currentfName,""); pthread_mutex_lock(&mg); - int* receiverData = readFrameFromReceiver(currentfName,currentfIndex); + int* receiverData = readFrameFromReceiver(currentfName,currentfIndex);//if(currentfIndex!=-1)cout<<"--currentfIndex:"<> frameIndexOffset); - //cout<<"startFrameIndex:"<differentClients==1){//necessary??? sprintf(mess,"Receiver locked by %s\n", socket->lastClientIP); ret=FAIL; - } + }/* else if((slsReceiverList->getStatus()==RUNNING) && (index >= 0)){ ret = FAIL; strcpy(mess,"cannot set up receiver mode when receiver is running\n"); - } + }*/ else retval=slsReceiverList->setNFrameToGui(index); } diff --git a/slsDetectorSoftware/slsReceiver/svnInfoReceiver.h b/slsDetectorSoftware/slsReceiver/svnInfoReceiver.h index b5986368a..e7fe47167 100644 --- a/slsDetectorSoftware/slsReceiver/svnInfoReceiver.h +++ b/slsDetectorSoftware/slsReceiver/svnInfoReceiver.h @@ -2,10 +2,10 @@ #define SVNURL "file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware/slsReceiver" //#define SVNREPPATH "" #define SVNREPUUID "951219d9-93cf-4727-9268-0efd64621fa3" -//#define SVNREV 0x649 +//#define SVNREV 0x652 //#define SVNKIND "" //#define SVNSCHED "" #define SVNAUTH "l_maliakal_d" -#define SVNREV 0x649 -#define SVNDATE 0x20130808 +#define SVNREV 0x652 +#define SVNDATE 0x20130813 //