Interface VariableCollectionTimeDetector

All Superinterfaces:
Configurable, Detector, Device, Findable, gda.observable.IObservable, Scannable
All Known Implementing Classes:
HardwareTriggeredNXDetectorWithReadoutTimeAndVariableCollectionTime

public interface VariableCollectionTimeDetector extends Detector
VariableCollectionTimeDetectors can be prepared with a profile of collection times, such that each successive call to collectData can result in a different collection time.

The index pointing to the 'current' collection time is reset to zero at Scannable.atScanLineStart() and incremented after each Detector.collectData(). Detector.getCollectionTime() should read out this 'current' time.

Calls to Detector.setCollectionTime(double) should fail if a collection profile is set. Setting the profile to null will remove the profile and Detector.getCollectionTime() should again return the time configured with Detector.setCollectionTime(double).

  • Method Details

    • setCollectionTimeProfile

      void setCollectionTimeProfile(double[] times) throws DeviceException
      Set a profile of collection times used for successive calls to Detector.collectData() or in a continuous scan.
      Parameters:
      times - times in seconds or null
      Throws:
      DeviceException
    • getCollectionTimeProfile

      double[] getCollectionTimeProfile() throws DeviceException
      Get the profile of collection times used for successive calls to Detector.collectData() or in a continuous scan.
      Throws:
      DeviceException - times in seconds or null