Interface XCHIPDetector

All Superinterfaces:
Configurable, Detector, Device, EdeDetector, Findable, gda.observable.IObservable, NexusDetector, Scannable, StripDetector

public interface XCHIPDetector extends StripDetector
Sub-interface for functionality specifically relating the XH and XStrip detectors.

XCHIP relates to the common electronics of those two read heads.

  • Method Details

    • getNumberScansInFrame

      int getNumberScansInFrame(double frameTime, double scanTime, int numberOfFrames) throws DeviceException
      Given, in seconds, the frame time and the scan time, returns back the number of scans which would be fitted into the frame.

      As the rules for this are complicated and potentially variable depending on settings inside da.server, the logic is held within da.server and so this value must be fetched from da.server every time.

      Specified by:
      getNumberScansInFrame in interface EdeDetector
      Parameters:
      frameTime -
      scanTime -
      numberOfFrames -
      Returns:
      int the number of scans which would fit into the given frame
      Throws:
      DeviceException
    • fetchTemperatureData

      org.eclipse.january.dataset.IDataset[][] fetchTemperatureData() throws DeviceException
      Fetches the logged temperatures since the last time startTemperatureLogging called.

      time is in epoch seconds.

      Returns:
      an array of Datasets: time, temp for sensor1, temp for sensor 2 etc.
      Throws:
      DeviceException
    • startTemperatureLogging

      void startTemperatureLogging() throws DeviceException
      Throws:
      DeviceException
    • stopTemperatureLogging

      void stopTemperatureLogging() throws DeviceException
      Throws:
      DeviceException
    • getTemperatureLogFile

      String getTemperatureLogFile()
      This will be a file of format LocalProperties.getVarDir() + getName() + "_temperatures_" + today's date + ".log";
      Returns:
      String - full path to the current fiel being written to.