3 #include "ScopeDefines.h"
6 #ifdef SCOPE_USE_STANDA_XYFPUSTAGE
12 #pragma comment(lib, "USMCDLL.lib")
16 namespace parameters {
17 class XYControlStanda;
25 class XYControlStanda :
33 std::array<DWORD, 2> dev;
39 double microsteps_per_micron;
45 USMC_StartParameters stprms;
48 USMC_EncoderState enstate;
53 void InitAxis(
const DWORD& _device);
59 void TurnOffAndSaveToFlash(
const DWORD& _device);
68 virtual void Initialize(parameters::XYControlStanda& _params);
71 virtual void StartPolling()
override;
73 virtual void UpdatePositionValues()
override;
76 virtual void SetZero()
override;
80 virtual void MoveRelative(
const double& _xrel,
const double& _yrel)
override;
84 virtual void MoveAbsolute(
const double& _xabs,
const double& _yabs)
override;
87 std::wstring GetParameters();
90 std::wstring GetMode();
93 std::wstring GetState();
96 std::wstring GetStartParameters();
bool CheckError(const int32 &error)
Checks return value of NI DAQmx function for error, prints out error information and throws an except...