Package gda.device.memory
Class Scaler
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.memory.Gdhist
gda.device.memory.Scaler
- All Implemented Interfaces:
Device,Memory,Configurable,Findable,gda.observable.IObservable
- Direct Known Subclasses:
GdhistTimes
A memory class for the VME Generic data acquisition histogramming memory card implemented using DA.Server
-
Field Summary
Fields inherited from class gda.device.memory.Gdhist
daServer, handle, height, host, localEndian, openCommand, password, remoteEndian, startupScript, totalFrames, user, widthFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidopen()voidOutput data from memory directly to filedouble[]read(int frame) Read the specified frame/image/spectrum.double[]read(int x, int y, int t, int dx, int dy, int dt) Read the specified block of memory.float[]readFloat(int frame) float[]readFloat(int x, int y, int t, int dx, int dy, int dt) Methods inherited from class gda.device.memory.Gdhist
clear, clear, clear, close, configure, ensureOpen, getAttribute, getDaServer, getDaServerName, getDimension, getHeight, getMemorySize, getOpenCommand, getSizeCommand, getStartupScript, getSupportedDimensions, getWidth, reconfigure, sendAndParse, setAttribute, setDaServer, setDaServerName, setDimension, setFail, setHeight, setOpenCommand, setSizeCommand, setStartupScript, setSupportedDimensions, setWidth, start, stop, write, writeMethods inherited from class gda.device.DeviceBase
addIObserver, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
Scaler
public Scaler()
-
-
Method Details
-
open
- Overrides:
openin classGdhist- Throws:
DeviceException
-
readFloat
- Overrides:
readFloatin classGdhist- Throws:
DeviceException
-
readFloat
- Overrides:
readFloatin classGdhist- Throws:
DeviceException
-
read
Description copied from interface:MemoryRead the specified block of memory. The parameters give the ability to read a 3D block of memory.- Specified by:
readin interfaceMemory- Overrides:
readin classGdhist- Parameters:
x- is the start address for the offset in the x dimensiony- is the start address for the offset in the y dimensiont- is the start address for the offset in the z or t dimensiondx- is the address count in the x dimensiondy- is the address count in the y dimensiondt- is the address count in the z or t dimension- Returns:
- the data
- Throws:
DeviceException
-
read
Description copied from interface:MemoryRead the specified frame/image/spectrum.- Specified by:
readin interfaceMemory- Overrides:
readin classGdhist- Parameters:
frame- is the frame/image/spectrum number (1st = 0)- Returns:
- the data
- Throws:
DeviceException
-
output
Description copied from interface:MemoryOutput data from memory directly to file- Specified by:
outputin interfaceMemory- Overrides:
outputin classGdhist- Parameters:
file- is the fully qualified file name- Throws:
DeviceException
-