Interface PressureCellController
- All Known Implementing Classes:
DummyPressureCellController,EpicsPressureCellController
public interface PressureCellController
Low level controller for the Pressure Cell hardware
Allows both epics and dummy mode versions to be wrapped by a single PressureCell scannable. Methods in these controllers should generally be blocking with any asynchronous control being handled at the scannable level. The one
Allows both epics and dummy mode versions to be wrapped by a single PressureCell scannable. Methods in these controllers should generally be blocking with any asynchronous control being handled at the scannable level. The one
asyncGo() method allows
the pressure cell to be started without waiting for the move to complete. The returned
Future gives access to the ongoing move and returns the final pressure when the move is
complete.-
Method Summary
Modifier and TypeMethodDescriptionasyncGo()Start moving towards target pressure - non blocking but returns futuredoubleGet the current pressure at the sample cellGet the status of the Busy flagdoubleGet the pressure in the intermediate chamber (P2)doubleRBV for the pressure before a jumpdoubleRBV for the pressure after a jumpdoubleGet the pressure at the pumpdoubleRBV for the target pressure (non jump pressure)getV3()Get the valve controller for V3 (between the pump and the intermediate chamber)getV5()Get the valve controller for V5 (between the intermediate chamber and the sample)getV6()Get the valve controller for V6 (between the intermediate chamber and the sample)voidgo()Move to set pressure - blocks until pressure is reachedbooleanisBusy()Get the busy state of the controller
This may be different to goToBusy if move has been requested but is yet to startvoidReset and close all valvesvoidsetJump()Prepare for pressure jump
Set cell to initial pressure and intermediate chamber to after pressurevoidsetJumpFromPressure(double target) Set the starting pressure for a jumpvoidsetJumpToPressure(double target) Set the target for the pressure after a jumpvoidsetTargetPressure(double target) Set the target pressurevoidstop()Stop everything?voidstopPump()Stop the pumpvoidwaitForIdle(long timeout, TimeUnit unit) Wait while device is busy
-
Method Details
-
getCellPressure
Get the current pressure at the sample cell- Throws:
DeviceException
-
getIntermediatePressure
Get the pressure in the intermediate chamber (P2)- Throws:
DeviceException
-
getPumpPressure
Get the pressure at the pump- Throws:
DeviceException
-
getV3
PressureValve getV3()Get the valve controller for V3 (between the pump and the intermediate chamber) -
getV5
ArmablePressureValve getV5()Get the valve controller for V5 (between the intermediate chamber and the sample) -
getV6
ArmablePressureValve getV6()Get the valve controller for V6 (between the intermediate chamber and the sample) -
getTargetPressure
RBV for the target pressure (non jump pressure)- Throws:
DeviceException
-
setTargetPressure
Set the target pressure- Throws:
DeviceException
-
getJumpToPressure
RBV for the pressure after a jump- Throws:
DeviceException
-
setJumpToPressure
Set the target for the pressure after a jump- Throws:
DeviceException
-
getJumpFromPressure
RBV for the pressure before a jump- Throws:
DeviceException
-
setJumpFromPressure
Set the starting pressure for a jump- Throws:
DeviceException
-
stopPump
Stop the pump- Throws:
DeviceException
-
stop
Stop everything?- Throws:
DeviceException
-
getGoToBusy
Get the status of the Busy flag- Throws:
DeviceException
-
isBusy
boolean isBusy()Get the busy state of the controller
This may be different to goToBusy if move has been requested but is yet to start -
waitForIdle
Wait while device is busy- Parameters:
timeout- the time to wait in the given units. If timeout invalid input: '<' 0, this will block indefinitelyunit- of time the timeout is given in.- Throws:
DeviceExceptionInterruptedException
-
go
Move to set pressure - blocks until pressure is reached- Throws:
DeviceExceptionInterruptedException
-
resetValves
Reset and close all valves- Throws:
DeviceException
-
setJump
Prepare for pressure jump
Set cell to initial pressure and intermediate chamber to after pressure- Throws:
DeviceException
-
asyncGo
Start moving towards target pressure - non blocking but returns future- Throws:
DeviceException
-