mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-15 06:17:12 +02:00
moench great stuff
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@541 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -148,9 +148,12 @@ int slsReceiverFunctionList::getFrameIndex(){
|
||||
int slsReceiverFunctionList::getAcquisitionIndex(){
|
||||
if(startAcquisitionIndex==-1)
|
||||
acquisitionIndex=0;
|
||||
else
|
||||
else{
|
||||
if(myDetectorType == MOENCH)
|
||||
acquisitionIndex=(currframenum - startAcquisitionIndex);
|
||||
else
|
||||
acquisitionIndex=(currframenum - startAcquisitionIndex)/packetsPerFrame;
|
||||
|
||||
}
|
||||
return acquisitionIndex;
|
||||
}
|
||||
|
||||
@ -357,11 +360,12 @@ int slsReceiverFunctionList::startListening(){
|
||||
//start for each scan
|
||||
if(startFrameIndex==-1){
|
||||
if(!frameIndexOffset)
|
||||
startFrameIndex = (int)(*((int*)buffer));
|
||||
startFrameIndex = ((int)(*((int*)buffer)))- packetsPerFrame;
|
||||
else
|
||||
startFrameIndex = (((int)(*((int*)buffer))) & (frameIndexMask)) >> frameIndexOffset;
|
||||
startFrameIndex = ((((int)(*((int*)buffer))) & (frameIndexMask)) >> frameIndexOffset)-1;
|
||||
|
||||
startFrameIndex -= packetsPerFrame;
|
||||
//startFrameIndex -= packetsPerFrame;
|
||||
// startFrameIndex -=1;
|
||||
//cout<<"startFrameIndex:"<<startFrameIndex<<endl;
|
||||
prevframenum=startFrameIndex;
|
||||
}
|
||||
@ -511,7 +515,7 @@ int slsReceiverFunctionList::startWriting(){
|
||||
else
|
||||
currframenum = (((int)(*((int*)wbuf))) & (frameIndexMask)) >> frameIndexOffset;
|
||||
//currframenum = (int)(*((int*)wbuf));
|
||||
//cout<<"**************curreframenm:"<<currframenum<<endl;
|
||||
cout<<"**************curreframenm:"<<currframenum<<endl;
|
||||
|
||||
//write data
|
||||
if(enableFileWrite){
|
||||
|
Reference in New Issue
Block a user