Class Scaler

All Implemented Interfaces:
Device, Memory, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
GdhistTimes

public class Scaler extends Gdhist
A memory class for the VME Generic data acquisition histogramming memory card implemented using DA.Server
  • Constructor Details

    • Scaler

      public Scaler()
  • Method Details

    • open

      protected void open() throws DeviceException
      Overrides:
      open in class Gdhist
      Throws:
      DeviceException
    • readFloat

      public float[] readFloat(int x, int y, int t, int dx, int dy, int dt) throws DeviceException
      Overrides:
      readFloat in class Gdhist
      Throws:
      DeviceException
    • readFloat

      public float[] readFloat(int frame) throws DeviceException
      Overrides:
      readFloat in class Gdhist
      Throws:
      DeviceException
    • read

      public double[] read(int x, int y, int t, int dx, int dy, int dt) throws DeviceException
      Description copied from interface: Memory
      Read the specified block of memory. The parameters give the ability to read a 3D block of memory.
      Specified by:
      read in interface Memory
      Overrides:
      read in class Gdhist
      Parameters:
      x - is the start address for the offset in the x dimension
      y - is the start address for the offset in the y dimension
      t - is the start address for the offset in the z or t dimension
      dx - is the address count in the x dimension
      dy - is the address count in the y dimension
      dt - is the address count in the z or t dimension
      Returns:
      the data
      Throws:
      DeviceException
    • read

      public double[] read(int frame) throws DeviceException
      Description copied from interface: Memory
      Read the specified frame/image/spectrum.
      Specified by:
      read in interface Memory
      Overrides:
      read in class Gdhist
      Parameters:
      frame - is the frame/image/spectrum number (1st = 0)
      Returns:
      the data
      Throws:
      DeviceException
    • output

      public void output(String file) throws DeviceException
      Description copied from interface: Memory
      Output data from memory directly to file
      Specified by:
      output in interface Memory
      Overrides:
      output in class Gdhist
      Parameters:
      file - is the fully qualified file name
      Throws:
      DeviceException