mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
some more changes, yet to do receiver
This commit is contained in:
@ -962,6 +962,18 @@ int multiSlsDetector::exitServer(int detPos) {
|
||||
}
|
||||
|
||||
|
||||
int multiSlsDetector::execCommand(std::string cmd, int detPos) {
|
||||
// single
|
||||
if (detPos >= 0) {
|
||||
return detectors[detPos]->execCommand(cmd);
|
||||
}
|
||||
|
||||
// multi
|
||||
auto r = parallelCall(&slsDetector::execCommand, cmd);
|
||||
return sls::allEqualTo(r, static_cast<int>(OK)) ? OK : FAIL;
|
||||
}
|
||||
|
||||
|
||||
int multiSlsDetector::readConfigurationFile(std::string const fname) {
|
||||
freeSharedMemory();
|
||||
setupMultiDetector();
|
||||
|
@ -453,6 +453,14 @@ public:
|
||||
*/
|
||||
int exitServer(int detPos = -1);
|
||||
|
||||
/**
|
||||
* Execute a command on the detector server
|
||||
* @param cmd command
|
||||
* @param detPos -1 for all detectors in list or specific detector position
|
||||
* @returns OK or FAIL
|
||||
*/
|
||||
int execCommand(std::string cmd, int detPos);
|
||||
|
||||
/**
|
||||
* Load configuration from a configuration File
|
||||
* @param fname configuration file name
|
||||
|
Reference in New Issue
Block a user