Scope
SutterController.h
1 #pragma once
2 
3 #ifdef SCOPE_USE_SUTTER_XYZSTAGE
4 
5 #include "SerialConnection.h"
6 
7 namespace scope {
8 
13 class SutterController {
14 
15 public:
17  SutterController(const std::wstring& _comstring);
18 
20  std::vector<BYTE> Command(const std::string& _cmd, const uint32_t& _answerbytes);
21 
22 protected:
24  SerialConnection& Ctrl();
25 
29  static SerialConnection& CreateInstance(const std::wstring& _comstring);
30 
32  static std::mutex mutex;
33 
35  void CheckError(const std::vector<BYTE>& _received);
36 
37 protected:
39  std::wstring comstring;
40 
41 };
42 
43 }
44 
45 #endif
bool CheckError(const int32 &error)
Checks return value of NI DAQmx function for error, prints out error information and throws an except...
Definition: DAQmxTask.cpp:9