included setreceiver online in users class, so that one can start using users without config file

This commit is contained in:
Dhanya Maliakal 2017-11-23 10:21:54 +01:00
parent 7860637b46
commit 856ad76247
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,10 @@ int slsDetectorUsers::setOnline(int const online){
return myDetector->setOnline(online);
}
int slsDetectorUsers::setReceiverOnline(int const online){
return myDetector->setReceiverOnline(online);
}
void slsDetectorUsers::startMeasurement(){
myDetector->acquire(0);
}

View File

@ -110,6 +110,13 @@ class slsDetectorUsers
*/
int setOnline(int const online=-1);
/** @short sets the receivers onlineFlag
\param online can be: -1 returns wether the receiver is in online (1) or offline (0) state; 0 receiver in offline state; 1 receiver in online state
\returns 0 (offline) or 1 (online)
*/
int setReceiverOnline(int const online=-1);
/**
@short start measurement and acquires
\returns OK/FAIL