Berkeley Nuclear Data Software
TeledyneControl.h
Go to the documentation of this file.
1 
2 #ifndef _TELEDYNE_CONTROL_H_
3 #define _TELEDYNE_CONTROL_H_
4 #include "RS232Interface.h"
5 #include <string>
6 namespace NSDInstControl
7 {
8 
13 {
14 public:
17 
20  int connect(int a_instNum);
21 
23  int validateCalibration();
24 
26  double getVoltage(int a_ch);
27 
29  double getVSet(int a_ch);
30 
32  double getCurrent(int a_ch);
33 
35  double getISet(int a_ch);
36 
38  bool isChOn(int a_ch);
39 
42  double setVoltage(int a_ch, double a_volt);
43 
46  double setCurrent(int a_ch, double a_curr);
47 
49  int setMemory(int save);
50 
51 private:
53  int m_portEnum;
55  RS232Interface m_port;
57  bool m_isConnected;
58 
60  std::string getSingleChannelFloat(std::string a_response);
61 };
62 
63 }
64 
65 #endif
used as a c++ abstraction of the rs232 c functions in the RS232 folder
Definition: RS232Interface.h:13
Definition: TeledyneControl.h:13
double setVoltage(int a_ch, double a_volt)
sets the voltage for a given channel. Does not return set voltage
Definition: TeledyneControl.cpp:158
bool isChOn(int a_ch)
return true if the channel is powered
Definition: TeledyneControl.cpp:135
int setMemory(int save)
loads the saved memory settings
Definition: TeledyneControl.cpp:204
TeledyneControl()
default contstructor puts the class into an unconnected working state
Definition: TeledyneControl.cpp:15
double getVSet(int a_ch)
reads out the set voltage for a given channel
Definition: TeledyneControl.cpp:76
double getVoltage(int a_ch)
reads out the measured voltage for a given channel
Definition: TeledyneControl.cpp:56
int connect(int a_instNum)
Definition: TeledyneControl.cpp:21
int validateCalibration()
will return the manufacturer, model, serial number, and software version.
Definition: TeledyneControl.cpp:38
double getCurrent(int a_ch)
reads out the measured current for a given channel
Definition: TeledyneControl.cpp:96
double setCurrent(int a_ch, double a_curr)
Definition: TeledyneControl.cpp:178
double getISet(int a_ch)
reads out the set current for a given channel
Definition: TeledyneControl.cpp:115
CONF:HVMICC? is required before switching high voltage on.
Definition: bk9174BControl.h:9