mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
frame index updated for receiver
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@320 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -1062,6 +1062,9 @@ int slsDetector::setTCPSocket(string const name, int const control_port, int con
|
||||
std::cout<< "offline!" << std::endl;
|
||||
#endif
|
||||
}
|
||||
//default receiver off. if it was on by default, client doesnt know
|
||||
if(thisDetector->onlineFlag==ONLINE_FLAG)
|
||||
detectorSendToReceiver(false);
|
||||
return retval;
|
||||
};
|
||||
|
||||
@ -5643,6 +5646,24 @@ int slsDetector::getFramesCaughtByReceiver(){
|
||||
|
||||
|
||||
|
||||
int slsDetector::getCurrentFrameIndex(){
|
||||
int fnum=F_GET_FRAME_INDEX;
|
||||
int ret = FAIL;
|
||||
int retval=-1;
|
||||
|
||||
if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
||||
#ifdef VERBOSE
|
||||
std::cout << "Getting Current Frame Index of Receiver " << std::endl;
|
||||
#endif
|
||||
ret=thisReceiver->getInt(fnum,retval);
|
||||
if(ret==FORCE_UPDATE)
|
||||
ret=updateReceiver();
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int slsDetector::lockReceiver(int lock){
|
||||
int fnum=F_LOCK_RECEIVER;
|
||||
|
Reference in New Issue
Block a user