mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
wip, doc
This commit is contained in:
parent
bfe36085f2
commit
3376f7fa37
@ -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 = '')
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user