Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
MeanderScanMethodScript.h
Go to the documentation of this file.
1#pragma once
3#include <misc/gen/Sustain.h>
4
5namespace sf::ipj
6{
7
8class AcquireScript final : public ScriptLink
9{
10 public:
15
33
37 bool Execute(ECommand ac);
38
57
62
63 private:
69 bool sustain(const timespec& ts);
70
71 TSustain<AcquireScript> FSustainEntry;
72 EState FState;
73 ECommand FCommand;
74
75 // Forward declaration.
76 class AcquireCompiler;
77};
78
79}// namespace sf::ipj
Template to make the sustain system call a class method regularly.
Definition Sustain.h:184
Definition MeanderScanMethodScript.h:9
AcquireScript()
Constructor that needs a compiler or derived class.
ECommand
Available command to execute.
Definition MeanderScanMethodScript.h:20
@ acSAVE
Definition MeanderScanMethodScript.h:31
@ acSAVE_SET
Saves current settings and system parameters as they are right now. Also stops the acquisition.
Definition MeanderScanMethodScript.h:28
@ acOFF
Set acquisition so that no data is generated.
Definition MeanderScanMethodScript.h:22
@ acACQUIRE
Enable the devices to acquire data.
Definition MeanderScanMethodScript.h:26
@ acFREE_RUN
Set acquisition into running mode for no data storage.
Definition MeanderScanMethodScript.h:24
EState GetState()
Gets the current state.
EState
Stages for acquiring data.
Definition MeanderScanMethodScript.h:43
@ asWAITING
Waiting for command to finish.
Definition MeanderScanMethodScript.h:49
@ asACQUIRING
The acquisition device is acquiring data which can be stored.
Definition MeanderScanMethodScript.h:53
@ asRUNNING
The acquisition device is acquiring data which cannot be stored.
Definition MeanderScanMethodScript.h:51
@ asERROR
A command resulted in an error state.
Definition MeanderScanMethodScript.h:45
@ asOFF
Acquisition device is off and generates no data.
Definition MeanderScanMethodScript.h:47
@ asSTOPPED
The acquisition device has stopped and data can or is being saved.
Definition MeanderScanMethodScript.h:55
bool Execute(ECommand ac)
Execute a given acquisition ac command.
Definition LineScanMethod.h:6