![]() |
BakeoutController-Basic
0.1
A Controller for the Omicron vacuum chamber
|
Public Member Functions | |
TDKLambdaPowerSupply (PortCommunicator portCommunicator, int deviceAddress) throws IOException | |
int | getDeviceAddress () |
Double | getVoltage () throws IOException |
Double | getMeasuredVoltage () throws IOException |
void | setVoltage (double newVoltage) throws IOException |
void | reset () throws IOException |
Double | getCurrent () throws IOException |
void | setCurrent (double newCurrent) throws IOException |
void | outputOff () throws IOException |
void | outputOn () throws IOException |
Additional Inherited Members | |
![]() | |
String | GET_ADDRESS_COMMAND = "ADR %d\r" |
String | GET_VOLTAGE_COMMAND = "PV?\r" |
String | SET_VOLTAGE_COMMAND = "PV %.3f\r" |
String | GET_CURRENT_COMMAND = "PC?\r" |
String | SET_CURRENT_COMMAND = "PC %.3f\r" |
String | SET_OUTPUT_COMMAND = "OUT %s\r" |
String | RESET_COMMAND = "RST\r" |
String | OK_RESPONSE = "OK" |
String | OFF = "0" |
String | ON = "1" |
String | GET_MEASURED_VOLTAGE_COMMAND = "MV?\r" |
Contains methods for working with the power supply
Definition at line 15 of file TDKLambdaPowerSupply.java.
devices.TDKLambdaPowerSupply.TDKLambdaPowerSupply | ( | PortCommunicator | portCommunicator, |
int | deviceAddress | ||
) | throws IOException |
Constructs an instance of the power supply, and places the device into a state where it's capable of accepting remote commands. For the TDK Lambda power supply, this means the "ADR" command must be sent to the device with its matching address. This command must return an "OK" response.
portCommunicator | A tool capable of communicating with the device |
deviceAddress | An integer representing the address of the device on the given port |
IOException | If the device cannot be initialized |
Definition at line 49 of file TDKLambdaPowerSupply.java.
Double devices.TDKLambdaPowerSupply.getCurrent | ( | ) | throws IOException |
IOException | if the current value cannot be retrieved from the device |
Implements devices.PowerSupply.
Definition at line 107 of file TDKLambdaPowerSupply.java.
int devices.TDKLambdaPowerSupply.getDeviceAddress | ( | ) |
Implements devices.PowerSupply.
Definition at line 61 of file TDKLambdaPowerSupply.java.
Double devices.TDKLambdaPowerSupply.getMeasuredVoltage | ( | ) | throws IOException |
IOException | If the command cannot be written |
Implements devices.PowerSupply.
Definition at line 77 of file TDKLambdaPowerSupply.java.
Double devices.TDKLambdaPowerSupply.getVoltage | ( | ) | throws IOException |
IOException | if the command to get this value cannot be written |
Implements devices.PowerSupply.
Definition at line 69 of file TDKLambdaPowerSupply.java.
void devices.TDKLambdaPowerSupply.outputOff | ( | ) | throws IOException |
Turn off the device output
IOException | If the command to turn the device off could not be sent |
Implements devices.PowerSupply.
Definition at line 128 of file TDKLambdaPowerSupply.java.
void devices.TDKLambdaPowerSupply.outputOn | ( | ) | throws IOException |
Turn the device output on
IOException | If the command to turn the power supply on could not be sent |
Implements devices.PowerSupply.
Definition at line 141 of file TDKLambdaPowerSupply.java.
void devices.TDKLambdaPowerSupply.reset | ( | ) | throws IOException |
Bring the device to a safe, known state.
IOException | If this cannot be done |
Implements devices.PowerSupply.
Definition at line 97 of file TDKLambdaPowerSupply.java.
void devices.TDKLambdaPowerSupply.setCurrent | ( | double | newCurrent | ) | throws IOException |
newCurrent | The current in Amperes, to set the device to |
IOException | If the command to set the current cannot be sent |
Implements devices.PowerSupply.
Definition at line 115 of file TDKLambdaPowerSupply.java.
void devices.TDKLambdaPowerSupply.setVoltage | ( | double | newVoltage | ) | throws IOException |
newVoltage | The voltage to which the device output is to be set |
IOException | If the command to set this voltage could not be sent to the device |
Implements devices.PowerSupply.
Definition at line 86 of file TDKLambdaPowerSupply.java.
Git Repo |