Class SpecsPhoibosController
- All Implemented Interfaces:
Configurable,gda.observable.IObservable
Only operation in kinetic energy (KE) mode is supported. For users to work in binding energy (BE) that needs to be implemented at a higher level.
- All energies are in electron volts (eV)
- All angles are in degrees (deg)
- All positions are in millimetres (mm)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver anIObserver) voidConfigures the analyser controller and checks it is in a state to be used by GDA.voiddeleteIObserver(gda.observable.IObserver anIObserver) voidGets the acquisition mode.Acquisition modes provide different ways of operating the detector.doubleGets the current centre energy for "Fixed Energy" scans, in eV.intdoubledoubledoublegetEndY()Gets the current end (or high) Y scale, in eV.intdoubleGets the current step energy for the scan.doubleGets the currently set exposure time in seconds.doubleGets the current high kinetic energy for the scan, in eV.double[]getImage()This callsgetImage(int)but is more convenient as it handles the size for you.double[]getImage(int i) This gets the image as a double.float[]getImageAsFloat(int i) This gets the image as a float, this maybe useful as type conversion is performed server side by EPICS so the data transfered is halved this can help improve performance (at the loss of precision).intGets the currently set number of iterations.Gets the current lens modeThis returns a read-only copy of the available lens modes.doubleGets the current low kinetic energy for the scan, in eV.doubleGets the currently set pass energy, in eV.intGets the current PSU mode.This returns a read-only copy of the available power supply modes.doubleGets the retarding ratio to be used for "Fixed Retarding Ratio" scans.intdouble[]double[]getSpectrum(int i) doubleGets the current start (or low) Y scale, in eV.intintintGets the number of values (also called samples) to be used in "Snapshot" or "Fixed Energy" modes.Gets the Y scale unitsbooleanCheck if the EPICS IOC is connected to SpecsLab.booleanisPaused()Check the current paused status of the analyser.booleanChecks if the analyser will be placed in a safe state once an acquire finishes.voidpause()Pauses the current scan.voidresume()Resumes the current scan.voidsetAcquisitionMode(String value) Sets the acquisition mode.voidsetBasePVName(String basePVName) voidsetCentreEnergy(double value) Sets the centre energy to be used for "Fixed Energy" scans where the whole detector is integrated, in eV.voidsetEnergyStep(double value) Sets the step energy for the scan, in eV.voidsetExposureTime(double value) Sets the exposure time.voidsetHighEnergy(double value) Sets the high kinetic energy for the scan, in eV.voidsetImageMode(ImageMode imagemode) voidsetIterations(int value) Sets the number of iterations to be performed.voidsetLensMode(String value) Sets the current lens mode.voidsetLowEnergy(double value) Sets the low kinetic energy for the scan, in eV.voidsetPassEnergy(double value) Sets the pass energy to the requested value, in eV.voidsetPsuMode(String value) Sets the PSU mode.voidsetRetardingRatio(double value) Sets the retarding ratio to be used for "Fixed Retarding Ratio" scans.voidsetSafeState(boolean safe) Sets if the analyser should be placed into a safe state (HV switched off) at the end of a acquire.voidsetSlices(int slices) Sets the number of slices, this is the number of y channelsvoidsetValues(int value) Sets the number of values (also called samples) to be used in "Snapshot" or "Fixed Energy" modes.voidvoidvoidvoidMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Field Details
-
SAFE_STATE_DELAY
public static final double SAFE_STATE_DELAY- See Also:
-
-
Constructor Details
-
SpecsPhoibosController
public SpecsPhoibosController()
-
-
Method Details
-
getBasePVName
-
setBasePVName
-
configure
public void configure()Configures the analyser controller and checks it is in a state to be used by GDA.Default implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- See Also:
-
setLensMode
Sets the current lens mode.- Parameters:
value- The required lens mode.- Throws:
IllegalArgumentException- If the lens mode requested is invalidException- If there is a problem with the EPICS communication- See Also:
-
getLensMode
Gets the current lens mode- Returns:
- The current lens mode
- Throws:
Exception- If there is a problem with the EPICS communication
-
getPsuMode
Gets the current PSU mode.- Returns:
- The current power supply mode
- Throws:
Exception- If there is a problem with the EPICS communication
-
setPsuMode
Sets the PSU mode. This is to allow different kinetic energy ranges to be reached.- Parameters:
value- The required PSU mode- Throws:
IllegalArgumentException- If the PSU mode requested is invalidException- If there is a problem with the EPICS communication- See Also:
-
setAcquisitionMode
Sets the acquisition mode. Acquisition modes provide different ways of operating the detector, which might be better in different count rate regimes.- Parameters:
value- The required acquisition mode.- Throws:
IllegalArgumentException- If the acquisition mode requested is invalidException- If there is a problem with the EPICS communication- See Also:
-
getAcquisitionMode
Gets the acquisition mode. Acquisition modes provide different ways of operating the detector, which might be better in different count rate regimes.- Returns:
- The current acquisition mode
- Throws:
Exception- If there is a problem with the EPICS communication
-
getAcquisitionModes
Acquisition modes provide different ways of operating the detector. This returns a read-only copy of the list of available modes.- Returns:
- Set of the available acquisition modes
-
setPassEnergy
Sets the pass energy to the requested value, in eV.- Parameters:
value- The requested pass energy, in eV- Throws:
Exception- If there is a problem with the EPICS communication
-
getPassEnergy
Gets the currently set pass energy, in eV.- Returns:
- The current pass energy, in eV
- Throws:
Exception- If there is a problem with the EPICS communication
-
setLowEnergy
Sets the low kinetic energy for the scan, in eV.- Parameters:
value- The requested start energy, in eV- Throws:
IllegalArgumentException- If value is invalid input: '<'= 0Exception- If there is a problem with the EPICS communication
-
getLowEnergy
Gets the current low kinetic energy for the scan, in eV.- Returns:
- The current end energy, in eV
- Throws:
Exception- If there is a problem with the EPICS communication
-
setHighEnergy
Sets the high kinetic energy for the scan, in eV.- Parameters:
value- The requested end energy, in eV- Throws:
IllegalArgumentException- If value is invalid input: '<'= 0Exception- If there is a problem with the EPICS communication
-
getHighEnergy
Gets the current high kinetic energy for the scan, in eV.- Returns:
- The current end energy, in eV
- Throws:
Exception- If there is a problem with the EPICS communication
-
setEnergyStep
Sets the step energy for the scan, in eV. This is only used in "Fixed Transmission" and "Fixed Retarding Ratio" modes.- Parameters:
value- The requested energy step, in eV- Throws:
IllegalArgumentException- If value is invalid input: '<'= 0Exception- If there is a problem with the EPICS communication
-
getEnergyStep
Gets the current step energy for the scan. This is only used in "Fixed Transmission" and "Fixed Retarding Ratio" modes- Returns:
- The current step energy, in eV
- Throws:
Exception- If there is a problem with the EPICS communication
-
setCentreEnergy
Sets the centre energy to be used for "Fixed Energy" scans where the whole detector is integrated, in eV.- Parameters:
value- The requested centre energy in eV- Throws:
IllegalArgumentException- If value is invalid input: '<'= 0Exception- If there is a problem with the EPICS communication
-
getCentreEnergy
Gets the current centre energy for "Fixed Energy" scans, in eV.- Returns:
- The current centre energy, in eV
- Throws:
Exception- If there is a problem with the EPICS communication
-
setRetardingRatio
Sets the retarding ratio to be used for "Fixed Retarding Ratio" scans. This is then used to vary the pass energy with the kinetic energy according to RR = KE/PE.- Parameters:
value- The requested retard ratio- Throws:
IllegalArgumentException- If value is invalid input: '<'= 0Exception- If there is a problem with the EPICS communication
-
getRetardingRatio
Gets the retarding ratio to be used for "Fixed Retarding Ratio" scans. This is then used to vary the pass energy with the kinetic energy according to RR = KE/PE.- Returns:
- The current retarding ratio
- Throws:
Exception- If there is a problem with the EPICS communication
-
setValues
Sets the number of values (also called samples) to be used in "Snapshot" or "Fixed Energy" modes.In snapshot mode this defines the number of fixed energy windows that the energy range will be divided into. This allow larger KE ranges to be covered using a smaller pass energy.
In fixed energy mode this defines the number of repeats that define one iteration.
- Parameters:
value- The requested number of values for the scan- Throws:
IllegalArgumentException- If value is invalid input: '<' 1Exception- If there is a problem with the EPICS communication
-
getValues
Gets the number of values (also called samples) to be used in "Snapshot" or "Fixed Energy" modes.In snapshot mode this defines the number of fixed energy windows that the energy range will be divided into. This allow larger KE ranges to be covered using a smaller pass energy.
In fixed energy mode this defines the number of repeats that define one iteration.
- Returns:
- The current values
- Throws:
Exception- If there is a problem with the EPICS communication
-
setSlices
Sets the number of slices, this is the number of y channels- Parameters:
slices- The requested number of slices- Throws:
Exception
-
getSlices
- Throws:
Exception
-
getEnergyChannels
- Throws:
Exception
-
getTotalLeadPoints
- Throws:
Exception
-
getSpectrum
- Throws:
Exception
-
getImage
This callsgetImage(int)but is more convenient as it handles the size for you. If performance is critical it would be better to reduce the number of requests to EPICS to do this you can callgetImage(int)directly if you already know the size required.- Returns:
- The image data as a 1D array
- Throws:
Exception- If there is a problem with the EPICS communication
-
getSpectrum
- Throws:
Exception
-
getImage
This gets the image as a double. You need to request the correct number of elements, if you don't know callgetImage()instead as this will be handled automatically.- Parameters:
i- The number of array elements requested. Should be the the image size- Returns:
- The image data as a 1D array
- Throws:
Exception- If there is a problem with the EPICS communication
-
getImageAsFloat
This gets the image as a float, this maybe useful as type conversion is performed server side by EPICS so the data transfered is halved this can help improve performance (at the loss of precision). You need to request the correct number of elements.- Parameters:
i- The number of array elements requested. Should be the the image size- Returns:
- The image data as a 1D array
- Throws:
Exception- If there is a problem with the EPICS communication
-
getLensModes
This returns a read-only copy of the available lens modes.- Returns:
- Set of the available lens modes
-
getPsuModes
This returns a read-only copy of the available power supply modes.- Returns:
- Set of the available power supply modes
-
getExposureTime
Gets the currently set exposure time in seconds.- Returns:
- The exposure time in seconds
- Throws:
Exception- If there is a problem with the EPICS communication
-
setExposureTime
Sets the exposure time.- Parameters:
value- The requested exposure time in seconds- Throws:
Exception- If there is a problem with the EPICS communication
-
getIterations
Gets the currently set number of iterations.- Returns:
- The number of iterations
- Throws:
Exception- If there is a problem with the EPICS communication
-
setIterations
Sets the number of iterations to be performed.- Parameters:
value- Number of iterations to run- Throws:
Exception- If there is a problem with the EPICS communicationIllegalArgumentException- If value is invalid input: '<'1
-
isConnected
Check if the EPICS IOC is connected to SpecsLab.- Returns:
- true if the IOC is connected to SpecsLab
- Throws:
Exception- If there is a problem with the EPICS communication
-
pause
Pauses the current scan.- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
resume
Resumes the current scan.- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
isPaused
Check the current paused status of the analyser.- Returns:
- True if the analyser is paused
- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
setSafeState
Sets if the analyser should be placed into a safe state (HV switched off) at the end of a acquire. This can be disabled for performance because ramping the voltages takes significant time. Setting to false does NOT switch on HV it just means they will not be switched off at the end of the next acquire.When set to true this will block until the analyser has reached a safe state, with a time out of 30.0 seconds. This is desirable as asking the analyser to measure again during the ramping may fail.
- Parameters:
safe- True to switch off the high voltage- Throws:
Exception- If there is a problem with the EPICS communication
-
isSafeState
Checks if the analyser will be placed in a safe state once an acquire finishes.- Returns:
- true if analyser will be placed in a safe state once an acquire finishes
- Throws:
Exception- If there is a problem with the EPICS communication
-
getStartY
Gets the current start (or low) Y scale, in eV.- Returns:
- The current start Y
- Throws:
Exception- If there is a problem with the EPICS communication
-
getEndY
Gets the current end (or high) Y scale, in eV.- Returns:
- The current start Y
- Throws:
Exception- If there is a problem with the EPICS communication
-
getYUnits
Gets the Y scale units- Returns:
- The current start Y
- Throws:
Exception- If there is a problem with the EPICS communication
-
setImageMode
- Throws:
Exception
-
startAcquiring
- Throws:
Exception
-
stopAcquiring
- Throws:
Exception
-
getDetectorStatus
- Throws:
Exception
-
getStatusMessage
- Throws:
Exception
-
waitWhileStatusBusy
- Throws:
InterruptedException
-
addIObserver
public void addIObserver(gda.observable.IObserver anIObserver) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver anIObserver) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-
getTotalPoints
- Throws:
Exception
-
getCurrentPoint
- Throws:
Exception
-
getPointInIteration
- Throws:
Exception
-
validateScanConfiguration
- Throws:
Exception
-
getScanValidityStatus
- Throws:
Exception
-
getDetectorEnergyWidth
- Throws:
Exception
-
getDetectorVoltage
- Throws:
Exception
-