This commit is contained in:
maliakal_d 2020-09-14 15:39:21 +02:00
parent bfe36085f2
commit 3376f7fa37
3 changed files with 24 additions and 3 deletions

View File

@ -174,6 +174,7 @@ class Detector(CppDetectorApi):
@property
def clientversion(self):
"""Client software version in format [YYMMDD]"""
return self.getClientVersion()
@property
@ -1256,6 +1257,16 @@ class Detector(CppDetectorApi):
def acquire(self):
"""
Run the configured measurement
Note
----
Blocking command, where control server is blocked and cannot accept other commands until acquisition is done. \n
- sets acquiring flag
- starts the receiver listener (if enabled)
- starts detector acquisition for number of frames set
- monitors detector status from running to idle
- stops the receiver listener (if enabled)
- increments file index if file write enabled
- resets acquiring flag
"""
super().acquire()
print('\n', end = '')

View File

@ -424,12 +424,14 @@ class Detector {
/**
* Blocking call: Acquire the number of frames set
* - sets acquiring flag
* - starts the receiver listener
* - starts the receiver listener (if enabled)
* - starts detector acquisition for number of frames set
* - monitors detector status from running to idle
* - stops the receiver listener
* - stops the receiver listener (if enabled)
* - increments file index if file write enabled
* - resets acquiring flag
* Control server is blocked and cannot accept other commands until
* acquisition is done.
*/
void acquire();

View File

@ -182,7 +182,15 @@ std::string CmdProxy::VirtualServer(int action) {
std::string CmdProxy::Acquire(int action) {
std::ostringstream os;
if (action == defs::HELP_ACTION) {
os << cmd << "\n\tAcquire the number of frames set up.\n";
os << cmd
<< "\n\tAcquire the number of frames set up.\n\tBlocking command, "
"where control server is blocked and cannot accept other "
"commands until acquisition is done. \n\t- sets acquiring "
"flag\n\t- starts the receiver listener (if enabled)\n\t- starts "
"detector acquisition for number of frames set\n\t- monitors "
"detector status from running to idle\n\t- stops the receiver "
"listener (if enabled)\n\t- increments file index if file write "
"enabled\n\t- resets acquiring flag";
} else {
if (det->empty()) {
throw sls::RuntimeError(