Berkeley Nuclear Data Software
bk9174BControl.h
Go to the documentation of this file.
1 #ifndef _BK9174_CONTROL_H_
2 #define _BK9174_CONTROL_H_
3 
4 #include "StepnetMotorSettings.h"
5 #include "RS232Interface.h"
6 #include <string>
7 
8 namespace NSDInstControl
9 {
11 {
12 public:
13  BK9174Control(int a_portNum = 17
14  );
15 
16  int setVoltage(int a_chan,
17  std::string a_voltage
18  );
19 
20  int readoutVoltages();
21  std::string connectAndConfig();
22 private:
23  int m_portEnum;
24  RS232Interface m_port;
25  bool m_isConnected;
26 
27 };
28 
29 
30 }
31 
32 #endif
Definition: bk9174BControl.h:11
int readoutVoltages()
Definition: bk9174BControl.cpp:65
BK9174Control(int a_portNum=17)
Definition: bk9174BControl.cpp:14
std::string connectAndConfig()
Opens communication port and tests to see if string is recieved.
Definition: bk9174BControl.cpp:22
int setVoltage(int a_chan, std::string a_voltage)
Definition: bk9174BControl.cpp:50
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