Package uk.ac.gda.devices.tenma.api
Interface IPsu722930
- All Known Implementing Classes:
Psu722930
public interface IPsu722930
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the currentdoubleGets the step size used when gradually ramping the currentdoubleGets the voltagebooleanIndicates whether the output is currently onvoidTurns off the outputvoidoutputOn()Turns on the outputvoidrampCurrent(double startCurrent, double endCurrent, double secondsToRamp) Gradually moves the current from one value to anothervoidGradually moves the current from its present value to zero over 60 secondsvoidrampToZero(double rampTimeInSeconds) Gradually moves the current from its present value to zero over the specified number of secondsvoidsetCurrent(double current) Sets the currentvoidsetCurrentStepSize(double currentStepSize) Sets the step size used when gradually ramping the currentvoidsetVoltage(double voltage) Sets the voltage
-
Method Details
-
getCurrent
Gets the current- Returns:
- The current
- Throws:
DeviceException
-
setCurrent
Sets the current- Parameters:
current- The requested current- Throws:
DeviceException- If there is a problem communicating with the device
-
getVoltage
Gets the voltage- Returns:
- The voltage
- Throws:
DeviceException- If there is a problem communicating with the device
-
setVoltage
Sets the voltage- Parameters:
voltage- The requested voltage- Throws:
DeviceException- If there is a problem communicating with the device
-
outputOn
Turns on the output- Throws:
DeviceException- If there is a problem communicating with the device
-
outputOff
Turns off the output- Throws:
DeviceException- If there is a problem communicating with the device
-
outputIsOn
Indicates whether the output is currently on- Returns:
- A boolean indicating if the output is on
- Throws:
DeviceException
-
rampCurrent
void rampCurrent(double startCurrent, double endCurrent, double secondsToRamp) throws DeviceException, InterruptedException Gradually moves the current from one value to another- Parameters:
startCurrent- The starting currentendCurrent- The end currentsecondsToRamp- The time it should take to get from startCurrent to endCurrent- Throws:
DeviceException- If there is a problem communicating with the deviceInterruptedException
-
rampToZero
Gradually moves the current from its present value to zero over the specified number of seconds- Parameters:
rampTimeInSeconds- The time in seconds it should take to reduce the current to zero- Throws:
DeviceException- If there is a problem communicating with the deviceInterruptedException
-
rampToZero
Gradually moves the current from its present value to zero over 60 seconds- Throws:
DeviceException- If there is a problem communicating with the deviceInterruptedException
-
getCurrentStepSize
double getCurrentStepSize()Gets the step size used when gradually ramping the current- Returns:
- The step size
-
setCurrentStepSize
void setCurrentStepSize(double currentStepSize) Sets the step size used when gradually ramping the current- Parameters:
currentStepSize- The step size
-