BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
PowerSupply.java
1 package devices;
2 
3 import java.io.IOException;
4 
8 public interface PowerSupply extends RS232Device {
9 
18  String GET_ADDRESS_COMMAND = "ADR %d\r";
19 
23  String GET_VOLTAGE_COMMAND = "PV?\r";
24 
29  String SET_VOLTAGE_COMMAND = "PV %.3f\r";
30 
34  String GET_CURRENT_COMMAND = "PC?\r";
35 
40  String SET_CURRENT_COMMAND = "PC %.3f\r";
41 
49  String SET_OUTPUT_COMMAND = "OUT %s\r";
50 
54  String RESET_COMMAND = "RST\r";
55 
60  String OK_RESPONSE = "OK";
61 
65  String OFF = "0";
66 
70  String ON = "1";
71 
72  String GET_MEASURED_VOLTAGE_COMMAND = "MV?\r";
73 
78  void reset() throws IOException;
79 
84  Double getVoltage() throws IOException;
85 
90  Double getMeasuredVoltage() throws IOException;
91 
96  void setVoltage(double newVoltage) throws IOException;
97 
102  Double getCurrent() throws IOException;
103 
108  void setCurrent(double newCurrent) throws IOException;
109 
113  int getDeviceAddress();
114 
119  void outputOn() throws IOException;
120 
125  void outputOff() throws IOException;
126 }
void setVoltage(double newVoltage)
Double getMeasuredVoltage()
void setCurrent(double newCurrent)
Git Repo