mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
wip, doc
This commit is contained in:
parent
bfe36085f2
commit
3376f7fa37
@ -174,6 +174,7 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def clientversion(self):
|
def clientversion(self):
|
||||||
|
"""Client software version in format [YYMMDD]"""
|
||||||
return self.getClientVersion()
|
return self.getClientVersion()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1256,6 +1257,16 @@ class Detector(CppDetectorApi):
|
|||||||
def acquire(self):
|
def acquire(self):
|
||||||
"""
|
"""
|
||||||
Run the configured measurement
|
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()
|
super().acquire()
|
||||||
print('\n', end = '')
|
print('\n', end = '')
|
||||||
|
@ -424,12 +424,14 @@ class Detector {
|
|||||||
/**
|
/**
|
||||||
* Blocking call: Acquire the number of frames set
|
* Blocking call: Acquire the number of frames set
|
||||||
* - sets acquiring flag
|
* - sets acquiring flag
|
||||||
* - starts the receiver listener
|
* - starts the receiver listener (if enabled)
|
||||||
* - starts detector acquisition for number of frames set
|
* - starts detector acquisition for number of frames set
|
||||||
* - monitors detector status from running to idle
|
* - monitors detector status from running to idle
|
||||||
* - stops the receiver listener
|
* - stops the receiver listener (if enabled)
|
||||||
* - increments file index if file write enabled
|
* - increments file index if file write enabled
|
||||||
* - resets acquiring flag
|
* - resets acquiring flag
|
||||||
|
* Control server is blocked and cannot accept other commands until
|
||||||
|
* acquisition is done.
|
||||||
*/
|
*/
|
||||||
void acquire();
|
void acquire();
|
||||||
|
|
||||||
|
@ -182,7 +182,15 @@ std::string CmdProxy::VirtualServer(int action) {
|
|||||||
std::string CmdProxy::Acquire(int action) {
|
std::string CmdProxy::Acquire(int action) {
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
if (action == defs::HELP_ACTION) {
|
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 {
|
} else {
|
||||||
if (det->empty()) {
|
if (det->empty()) {
|
||||||
throw sls::RuntimeError(
|
throw sls::RuntimeError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user