BakeoutController  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 NamedDevice {
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 
76  void reset() throws IOException;
77 
82  Double getVoltage() throws IOException;
83 
88  void setVoltage(double newVoltage) throws IOException;
89 
94  Double getCurrent() throws IOException;
95 
100  void setCurrent(double newCurrent) throws IOException;
101 
105  int getDeviceAddress();
106 
111  void outputOn() throws IOException;
112 
117  void outputOff() throws IOException;
118 }
void setVoltage(double newVoltage)
void setCurrent(double newCurrent)
Git Repo