Class EpicsETLController

All Implemented Interfaces:
Device, InitializationListener, Configurable, Findable, gda.observable.IObservable

public class EpicsETLController extends DeviceBase implements InitializationListener
The Class EpicsETLScintillator.
  • Field Details

  • Constructor Details

    • EpicsETLController

      public EpicsETLController()
      The Constructor.
  • Method Details

    • configure

      public void configure() throws FactoryException
      Description copied from class: ConfigurableBase
      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:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • setHighVoltage

      public void setHighVoltage(int hv) throws gov.aps.jca.CAException, InterruptedException
      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.CAException
      IllegalArgumentException - if voltage is outside permissable range
      InterruptedException
    • getHighVoltage

      public int getHighVoltage() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Get 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.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • setUpperLimit

      public void setUpperLimit(int hv) throws gov.aps.jca.CAException, InterruptedException
      Set the upper threshold in mV.
      Parameters:
      hv -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • getUpperLimit

      public int getUpperLimit() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Get 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.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • setLowerLimit

      public void setLowerLimit(int hv) throws gov.aps.jca.CAException, InterruptedException
      Set the lower threshold in mV for the detector.
      Parameters:
      hv -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • getLowerLimit

      public int getLowerLimit() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Get 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.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getActualHVOutput

      public int getActualHVOutput() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Get the actual HV output voltage. This reads ADC channel 3.
      Returns:
      int
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • initializationCompleted

      public void initializationCompleted()
      Description copied from interface: InitializationListener
      Called when all critical channels are connected.
      Specified by:
      initializationCompleted in interface InitializationListener
    • getName

      public String getName()
      Description copied from class: DeviceBase
      Get the name of the device
      Specified by:
      getName in interface Findable
      Overrides:
      getName in class DeviceBase
      Returns:
      Returns the name.
    • setName

      public void setName(String name)
      Description copied from class: DeviceBase
      Set the name of the device
      Specified by:
      setName in interface Findable
      Overrides:
      setName in class DeviceBase
      Parameters:
      name - The name to set.
    • setPvRoot

      public void setPvRoot(String pv)
    • getPvRoot

      public String getPvRoot()