Package gda.device.detector.etldetector
Class EpicsETLController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.detector.etldetector.EpicsETLController
- All Implemented Interfaces:
Device,InitializationListener,Configurable,Findable,gda.observable.IObservable
The Class EpicsETLScintillator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant description for this device.static final StringThe Constant type for this device.Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault 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.intGet the actual HV output voltage.intGet HV control voltage setting from the ETL Detector.intGet the lower threshold in mV.getName()Get the name of the deviceintGet the Upper Threshold in mV.voidCalled when all critical channels are connected.voidsetHighVoltage(int hv) Set HV Control voltage setting in mV to ETL Detector.voidsetLowerLimit(int hv) Set the lower threshold in mV for the detector.voidSet the name of the devicevoidvoidsetUpperLimit(int hv) Set the upper threshold in mV.Methods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured, reconfigure
-
Field Details
-
type
The Constant type for this device.- See Also:
-
description
The Constant description for this device.- See Also:
-
-
Constructor Details
-
EpicsETLController
public EpicsETLController()The Constructor.
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault 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- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setHighVoltage
Set HV Control voltage setting in mV to ETL Detector. Setting the HV above 2000V will cause damage to the HV circuit. The pmt maximum voltage rating may restrict this limit further.- Parameters:
hv-- Throws:
gov.aps.jca.CAExceptionIllegalArgumentException- if voltage is outside permissable rangeInterruptedException
-
getHighVoltage
public int getHighVoltage() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedExceptionGet HV control voltage setting from the ETL Detector. This returns the contents of the control register, not the actual HV voltage.- Returns:
- int
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
setUpperLimit
Set the upper threshold in mV.- Parameters:
hv-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
getUpperLimit
public int getUpperLimit() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedExceptionGet the Upper Threshold in mV. This is the setting value stored in the control register, not a measure of the actual voltage.- Returns:
- int
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
setLowerLimit
Set the lower threshold in mV for the detector.- Parameters:
hv-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
getLowerLimit
public int getLowerLimit() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedExceptionGet the lower threshold in mV. This is the setting value stored in the control register, NOT a measure of the actual voltage.- Returns:
- int
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
getActualHVOutput
public int getActualHVOutput() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedExceptionGet the actual HV output voltage. This reads ADC channel 3.- Returns:
- int
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
initializationCompleted
public void initializationCompleted()Description copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener
-
getName
Description copied from class:DeviceBaseGet the name of the device- Specified by:
getNamein interfaceFindable- Overrides:
getNamein classDeviceBase- Returns:
- Returns the name.
-
setName
Description copied from class:DeviceBaseSet the name of the device- Specified by:
setNamein interfaceFindable- Overrides:
setNamein classDeviceBase- Parameters:
name- The name to set.
-
setPvRoot
-
getPvRoot
-