DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Stage.cpp
Go to the documentation of this file.
1 // This file is part of DynExp.
2 
3 #include "stdafx.h"
4 #include "Stage.h"
5 
6 namespace DynExpInstr
7 {
9  {
10  Position = 0;
11  Velocity = 0;
12 
14  }
15 
17  {
18  }
19 
21  {
22  }
23 
25  {
26  }
27 
29  {
31  }
32 
34  {
36  }
37 
39  {
41  }
42 
44  {
46  }
47 
49  {
51  }
52 }
Implementation of a meta instrument to control single-axis positioner stages.
PositionType Velocity
Velocity in nm/s if the respective stage supports SI units. Otherwise, in units of steps/s.
Definition: Stage.h:112
void ResetImpl(dispatch_tag< InstrumentDataBase >) override final
Definition: Stage.cpp:8
PositionType Position
Position in nm if the respective stage supports SI units. Otherwise, in units of steps performed.
Definition: Stage.h:107
virtual void Reference(DirectionType Direction=DirectionType::Forward, DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const
References the positioner such that it finds its zero position or end stop.
Definition: Stage.cpp:33
void ResetImpl(dispatch_tag< InstrumentBase >) override final
Definition: Stage.cpp:48
virtual void Calibrate(DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const
Calibrates the positioner. The meaning of such a calibration is solely specified by the hardware manu...
Definition: Stage.cpp:38
virtual void MoveToHome(DynExp::TaskBase::CallbackType CallbackFunc=nullptr) const
Moves the positioner to its stored home position. Also refer to SetHome().
Definition: Stage.cpp:43
DirectionType
Type to determine the direction of the positioner stage's movements.
Definition: Stage.h:160
virtual ~PositionerStage()=0
Definition: Stage.cpp:24
virtual void SetHome() const
Stores the positioner's home position. Also refer to MoveToHome().
Definition: Stage.cpp:28
Refer to ParamsBase::dispatch_tag.
Definition: Instrument.h:146
Refer to ParamsBase::dispatch_tag.
Definition: Object.h:2018
std::function< void(const TaskBase &, ExceptionContainer &)> CallbackType
Type of a callback function which is invoked when a task has finished, failed or has been aborted....
Definition: Instrument.h:939
Thrown when a requested feature is either under development and thus not implemented yet or when a sp...
Definition: Exception.h:299
DynExp's instrument namespace contains the implementation of DynExp instruments which extend DynExp's...
Definition: Instrument.h:1254
Accumulates include statements to provide a precompiled header.