Package gda.device
Interface Memory
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable
- All Known Implementing Classes:
EncoderCounter,Gdhist,GdhistTimes,Gdscaler,Scaler,Vvhist
Interface to control three dimensional (x, y, time) memory devices. Methods are, in general, to be passed start and
increment for each dimension.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the complete memory system.voidclear(int start, int count) Clear the specified number of frames/images/spectra starting with specified frame/image/spectrum number.voidclear(int x, int y, int t, int dx, int dy, int dt) Clear the specified block of memory.int[]Get the size of the memory system.intGet the physical memory sizeint[]If the detector supports multiple pixel settings, this will return an array of possible values.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.voidsetDimension(int[] d) Set the size of the memory system.voidstart()Starts/enables the memory system.voidstop()Stops/disables the memory system.voidwrite(double[] data, int frame) Write to the specified frame of memory.voidwrite(double[] data, int x, int y, int t, int dx, int dy, int dt) Write to the specified block of memory.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
clear
Clear the complete memory system.- Throws:
DeviceException
-
clear
Clear the specified number of frames/images/spectra starting with specified frame/image/spectrum number.- Parameters:
start- is the starting frame/image/spectrum number (1st = 0)count- is the number of frames/images/spectra to clear- Throws:
DeviceException
-
clear
Clear the specified block of memory. The parameters give the ability to clear a 3D block of memory.- 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- Throws:
DeviceException
-
start
Starts/enables the memory system.- Throws:
DeviceException
-
stop
Stops/disables the memory system.- Throws:
DeviceException
-
read
Read the specified block of memory. The parameters give the ability to read a 3D block of memory.- 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
Read the specified frame/image/spectrum.- Parameters:
frame- is the frame/image/spectrum number (1st = 0)- Returns:
- the data
- Throws:
DeviceException
-
setDimension
Set the size of the memory system.- Parameters:
d- is the- Throws:
DeviceException
-
getDimension
Get the size of the memory system.- Returns:
- the memory dimension in x and y
- Throws:
DeviceException
-
write
Write to the specified block of memory. The parameters give the ability to write a 3D block of memory.- Parameters:
data- is the data to write to the memoryx- 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- Throws:
DeviceException
-
write
Write to the specified frame of memory.- Parameters:
data- is the data to write to the memoryframe- the area in memory corresponding to the specified frame.- Throws:
DeviceException
-
output
Output data from memory directly to file- Parameters:
file- is the fully qualified file name- Throws:
DeviceException
-
getMemorySize
Get the physical memory size- Returns:
- the physical memory size expressed in words.
- Throws:
DeviceException
-
getSupportedDimensions
If the detector supports multiple pixel settings, this will return an array of possible values. Null otherwise. Assumes the detector is 2D with identical axes.- Returns:
- list of supported resolutions
- Throws:
DeviceException
-