Berkeley Nuclear Data Software
DG535Control.h
Go to the documentation of this file.
1 #ifndef _DG535_CONTROL_H_
2 #define _DG535_CONTROL_H_
3 
4 #include "StepnetMotorSettings.h"
5 #include "RS232Interface.h"
6 #include <string>
7 #include "rs232.h"
8 
9 namespace NSDInstControl
10 {
12 {
13 public:
14  DG535Control(int a_portNum = 16
15  );
16 
17  std::string connectAndConfig();
18  // ~DG535Control();
19  //go home
20  int setCTDelay(int a_delayPs);
21  std::string resetOffset(int a_i,
22  int a_j,
23  int a_original);
24 
25  std::string increaseDelay(int a_i, int a_j, int a_t, int a_initial);
26  std::string increaseDelayWithUnit(double a_dt, int a_unit, int a_initial);
27 
28  std::string setAbsDelay(double a_loc);
29  std::string setAbsDelayWithUnit(double a_delay,int a_unit);
31  void moveCurser (int i);//change i's
33  void increment (int i);
34  void storeSetting(int i);
35  void RecallSetting(int i);
36  // void getPosition(double& a_x);
37  // void getPositioncm(double & a_x);
38 
39  bool busy();
40 private:
41  // DG535Control(){};
42  int m_portEnum;
43  RS232Interface m_port;
44  bool m_isConnected;
45  double UnitConv (double a_num, int a_unit);
46 
47 };
48 
49 
50 }
51 #endif
Definition: DG535Control.h:12
void increment(int i)
incre
Definition: DG535Control.cpp:164
void storeSetting(int i)
Saves instument settings to location 1<i<9.
Definition: DG535Control.cpp:174
std::string connectAndConfig()
Opens communication port and tests to see if string is recieved.
Definition: DG535Control.cpp:22
DG535Control(int a_portNum=16)
Definition: DG535Control.cpp:14
std::string setAbsDelay(double a_loc)
sets delay of Channel C versus channel D by a_loc amount
Definition: DG535Control.cpp:130
std::string resetOffset(int a_i, int a_j, int a_original)
Definition: DG535Control.cpp:86
void moveCurser(int i)
moves the curser on the control panel
Definition: DG535Control.cpp:154
void RecallSetting(int i)
Recalls instrument settings from location i.
Definition: DG535Control.cpp:184
std::string increaseDelay(int a_i, int a_j, int a_t, int a_initial)
Definition: DG535Control.cpp:103
std::string setAbsDelayWithUnit(double a_delay, int a_unit)
Definition: DG535Control.cpp:141
std::string increaseDelayWithUnit(double a_dt, int a_unit, int a_initial)
Definition: DG535Control.cpp:118
int setCTDelay(int a_delayPs)
Definition: DG535Control.cpp:62
used as a c++ abstraction of the rs232 c functions in the RS232 folder
Definition: RS232Interface.h:13
CONF:HVMICC? is required before switching high voltage on.
Definition: bk9174BControl.h:9