Class VGScientaAnalyserCamOnly
- All Implemented Interfaces:
Detector,NexusDetector,Device,Scannable,PositionCallableProvider<NexusTreeProvider>,Configurable,Findable,gda.observable.IObservable,gov.aps.jca.event.MonitorListener,Serializable,EventListener,org.springframework.beans.factory.InitializingBean,IElectronAnalyser,IVGScientaAnalyserRMI
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.detector.addetector.ADDetector
ADDetector.NullFileWriter -
Field Summary
FieldsFields inherited from class gda.device.detector.addetector.ADDetector
afterPropertiesSetCalled, FILEPATH_EXTRANAME, firstReadoutInScanFields inherited from class gda.device.detector.DetectorBase
collectionTimeFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDoubleItem(NXDetectorData data, String name, double d, String units) protected voidappendDataAxes(NXDetectorData data) This stub adds rather stupid axes.protected voidvoidHook to be used by Scan and pos commands to inform the Scannable that an exception, such as a DeviceExcpetion, has occurred.voidCalled for every Scannable at the end of a group of nested scans (or a single scan if that is the case).voidCalled for every Scannable at the start of a group of nested scans (or a single scan if that is the case)voidchangeRequestedIterations(int max) This can be called to change the number of iterations scheduled during a scan.voidTells the detector to begin to collect a set of data, then returns immediately.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.protected NXDetectorDatadouble[]Gets the Y axis (usually angle) for the current acquisitionGets the current centre energydoubleReturns the time, in seconds, the detector collects for during the next call to collectData()intGets the completed number of iterations from the most recent scanintGets the current iteration number in the scanshortGets the current state of the analyserdouble[]Get the energy axis for the current acquisitiondoubleGets the step sizedoubleThis is the energy covered by one pixel in pass energy = 1 in meVdoubleDeprecated.double[]getExtIO(int length) Gets data from an external I/O deviceintThis gets the number of energy channels in the fixed mode region, to allow the fixed mode energy width to be calculated.int[]Returns an int array describing the fixed mode region.intGets the value of the frames parameterdouble[]getImage()Gets the image acquired during the most recent acquisitionintGets the currently set number of iterationsGets the current lens mode.Gets the list of available lens modesintReturns the maximum number of steps the analyser can perform in a swept scan.doublegetMaxKE()This is the fall-back maximum kinetic energy (KE) if the energyRange object can't provide a correct energy rangeintGets the available pass energiesGet the current pass energyGets the current PSU mode.Gets the available PSU modes (also known as element set)intReturns region size along X direction.intReturns region size along Y direction.intReturns sensor size along X direction.intReturns sensor size along Y direction.intGets the number of slices.double[]Gets the spectrum data acquired from the most recent acquisitionGets the list of supported acquisition mode, using AcquisitionMode enum.intThis gets the number of energy channels in the swept mode region, to allow the swept mode energy steps including pre-scan to be calculatedint[]Returns an int array describing the swept mode region.doublegetWorkFunction(double photonEnergy) booleanvoidmonitorChanged(gov.aps.jca.event.MonitorEvent arg0) voidsetAcquisitionMode(String value) Sets the acquisition modevoidsetCentreEnergy(Double value) Sets the centre energyvoidsetCollectionTime(double collectionTime) Sets the collection time, in seconds, to be used during the next call of collectData.voidsetController(VGScientaController controller) voidsetCpsRoiProvider(PlotServerROISelectionProvider cpsRoiProvider) voidsetEndEnergy(Double value) voidsetEnergyRange(AnalyserEnergyRangeConfiguration energyRange) voidsetEnergyStep(double value) Sets the step sizevoidsetEnergyStepPerPixel(double energyStepPerPixel) voidsetEntranceSlitInformationProvider(EntranceSlitInformationProvider entranceSlitInformationProvider) voidsetFixedModeConfiguration(DetectorConfiguration fixedModeConfiguration) voidsetFixedModeRegion(int[] fixedModeRegion) Sets a fixed mode region from an int array.voidsetIterations(int iterations) Sets the number of iterations requested, not for use while in a scanvoidsetLensMode(String value) Sets the lens modevoidsetMaxKE(double maxKE) voidsetPassEnergy(Integer value) Sets the pass energyvoidsetPgmEnergyScannable(Scannable pgmEnergyScannable) voidsetPsuMode(String value) Sets the PSU mode (aka element set)voidSets the analyser to single image modevoidsetSlices(int slices) Sets the number of slices to record i.e the number of non-energy (Y channels) that will be recorded.voidsetStartEnergy(Double value) voidsetSweptModeConfiguration(DetectorConfiguration sweptModeConfiguration) voidsetSweptModeRegion(int[] sweptModeRegion) Sets a swept mode region from an int array.voidsetupAcquisitionMode(AcquisitionMode acquisitionMode) Sets the acquisition mode to the one specified and performs any configuration necessary for the chosen mode, such as setting up ROIsvoidsetWorkFunctionProvider(WorkFunctionProvider workFunctionProvider) voidStarts the analyser acquiring data with the current parametersvoidStarts the analyser acquiring in continuous mode, this is intended for use in alignment.voidstop()Stop the current move/operation.voidStops the analyser after the current iteration and saves the data.doubletoBindingEnergy(double kineticEnergy) double[]toBindingEnergy(double[] kineticEnergy) voidReturns when operation carried out by moveTo has completedvoidStops the analyser and zeros the HV supplies.voidMethods inherited from class gda.device.detector.addetector.ADDetector
addDoubleItemToNXData, addMultipleDoubleItemsToNXData, afterPropertiesSet, asynchronousMoveTo, clearCachedCallable, configureExtraNamesAndOutputFormat, createFileName, createsOwnFiles, endCollection, getAdBase, getCollectionStrategy, getDataChunking, getDescription, getDetectorID, getDetectorType, getFileWriter, getMetaDataProvider, getNdArray, getNdFile, getNdOverlays, getNdPython, getNdStats, getPosition, getPositionCallable, getStatus, isBusy, isCheckFileExists, isComputeCentroid, isComputeStats, isDisableCallbacks, isReadAcquisitionPeriod, isReadAcquisitionTime, isReadArray, isReadCapturedFramesCount, isReadFilepath, isUsePipeline, prepareForArrayAndStatsCollection, prepareForCollection, readout, readoutArrayIntoNXDetectorData, reset, setAdBase, setCheckFileExists, setCollectionStrategy, setComputeCentroid, setComputeStats, setDataChunking, setDescription, setDetectorID, setDetectorType, setDisableCallbacks, setFileWriter, setMetaDataProvider, setNdArray, setNdFile, setNdOverlays, setNdPython, setNdStats, setReadAcquisitionPeriod, setReadAcquisitionTime, setReadArray, setReadCapturedFramesCount, setReadFilepath, setUsePipelineMethods inherited from class gda.device.detector.DetectorBase
checkPositionValid, getDataDimensions, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, atScanLineStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Detector
getDataDimensions, getFileStructureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, atScanLineStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Field Details
-
inScan
protected boolean inScan -
centre_energy
-
-
Constructor Details
-
VGScientaAnalyserCamOnly
public VGScientaAnalyserCamOnly()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classADDetector- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
getController
-
setController
-
atScanStart
Description copied from class:ScannableBaseCalled for every Scannable at the start of a group of nested scans (or a single scan if that is the case) Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanStartin interfaceScannable- Overrides:
atScanStartin classADDetector- Throws:
DeviceException- See Also:
-
atScanEnd
Description copied from class:ScannableBaseCalled for every Scannable at the end of a group of nested scans (or a single scan if that is the case).Note that this is only called if the Scan finishes normally, or has been requested to finish early. This will not be called if the scan finishes due to an exception of any kind. See
Scannable.atCommandFailure()Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanEndin interfaceScannable- Overrides:
atScanEndin classADDetector- Throws:
DeviceException- See Also:
-
getNumberOfSweeptSteps
- Throws:
Exception
-
getEnergyAxis
Description copied from interface:IElectronAnalyserGet the energy axis for the current acquisition- Specified by:
getEnergyAxisin interfaceIElectronAnalyser- Returns:
- The energy axis
- Throws:
Exception- If there is a problem with the EPICS communication
-
getAngleAxis
Description copied from interface:IElectronAnalyserGets the Y axis (usually angle) for the current acquisition- Specified by:
getAngleAxisin interfaceIElectronAnalyser- Returns:
- The angle axis
- Throws:
Exception- If there is a problem with the EPICS communication
-
appendDataAxes
Description copied from class:ADDetectorThis stub adds rather stupid axes. Overriding classes are highly encouraged to do better.- Overrides:
appendDataAxesin classADDetector- Parameters:
data-- Throws:
Exception
-
toBindingEnergy
public double[] toBindingEnergy(double[] kineticEnergy) -
toBindingEnergy
public double toBindingEnergy(double kineticEnergy) -
appendNXDetectorDataFromCollectionStrategy
- Overrides:
appendNXDetectorDataFromCollectionStrategyin classADDetector- Throws:
Exception
-
addDoubleItem
-
isFixedMode
- Throws:
Exception
-
setupAcquisitionMode
Description copied from interface:IElectronAnalyserSets the acquisition mode to the one specified and performs any configuration necessary for the chosen mode, such as setting up ROIs- Specified by:
setupAcquisitionModein interfaceIElectronAnalyser- Parameters:
acquisitionMode- The requested acquisition mode- Throws:
Exception- If there is a problem setting up the acquisition mode
-
getSweptModeConfiguration
-
setSweptModeConfiguration
-
getFixedModeConfiguration
-
setFixedModeConfiguration
-
getSweptModeRegion
public int[] getSweptModeRegion()Returns an int array describing the swept mode region.- Returns:
- sweptModeRegion An int array [StartX, StartY, SizeX, SizeY]
-
setSweptModeRegion
public void setSweptModeRegion(int[] sweptModeRegion) Sets a swept mode region from an int array.- Parameters:
sweptModeRegion- An int array [StartX, StartY, SizeX, SizeY]
-
getFixedModeRegion
public int[] getFixedModeRegion()Returns an int array describing the fixed mode region.- Returns:
- fixedModeRegion An int array [StartX, StartY, SizeX, SizeY]
-
setFixedModeRegion
public void setFixedModeRegion(int[] fixedModeRegion) Sets a fixed mode region from an int array.- Parameters:
fixedModeRegion- An int array [StartX, StartY, SizeX, SizeY]
-
getCollectionTime
Description copied from interface:DetectorReturns the time, in seconds, the detector collects for during the next call to collectData()- Specified by:
getCollectionTimein interfaceDetector- Specified by:
getCollectionTimein interfaceIElectronAnalyser- Overrides:
getCollectionTimein classDetectorBase- Returns:
- double
- Throws:
DeviceException- If there is a problem with the EPICS communication
-
setCollectionTime
Description copied from interface:DetectorSets the collection time, in seconds, to be used during the next call of collectData.- Specified by:
setCollectionTimein interfaceDetector- Specified by:
setCollectionTimein interfaceIElectronAnalyser- Overrides:
setCollectionTimein classDetectorBase- Parameters:
collectionTime- the collection time in seconds- Throws:
DeviceException
-
setLensMode
Description copied from interface:IElectronAnalyserSets the lens mode- Specified by:
setLensModein interfaceIElectronAnalyser- Parameters:
value- The lens mode to set- Throws:
Exception- If there is a problem with the EPICS communication
-
getLensMode
Description copied from interface:IElectronAnalyserGets the current lens mode.- Specified by:
getLensModein interfaceIElectronAnalyser- Returns:
- The current lens mode
- Throws:
Exception- If there is a problem with the EPICS communication
-
getLensModes
Description copied from interface:IElectronAnalyserGets the list of available lens modes- Specified by:
getLensModesin interfaceIElectronAnalyser
-
getPsuMode
Description copied from interface:IElectronAnalyserGets the current PSU mode. (Also known as element set)- Specified by:
getPsuModein interfaceIElectronAnalyser- Returns:
- The current power supply mode
- Throws:
Exception- If there is a problem with the EPICS communication
-
getPsuModes
Description copied from interface:IElectronAnalyserGets the available PSU modes (also known as element set)- Specified by:
getPsuModesin interfaceIElectronAnalyser- Returns:
- The list of available PSU modes
-
setPsuMode
Description copied from interface:IElectronAnalyserSets the PSU mode (aka element set)- Specified by:
setPsuModein interfaceIElectronAnalyser- Throws:
Exception- If there is a problem with the EPICS communication
-
setPassEnergy
Description copied from interface:IElectronAnalyserSets the pass energy- Specified by:
setPassEnergyin interfaceIElectronAnalyser- Parameters:
value- The requested pass energy- Throws:
Exception- If the pass energy is invalid or if there is a problem with the EPICS communication
-
getPassEnergy
Description copied from interface:IElectronAnalyserGet the current pass energy- Specified by:
getPassEnergyin interfaceIElectronAnalyser- Returns:
- The current pass energy
- Throws:
Exception- If there is a problem with the EPICS communication
-
getPassEnergies
Description copied from interface:IElectronAnalyserGets the available pass energies- Specified by:
getPassEnergiesin interfaceIElectronAnalyser
-
setStartEnergy
- Throws:
Exception
-
getStartEnergy
- Throws:
Exception
-
setCentreEnergy
Description copied from interface:IElectronAnalyserSets the centre energy- Specified by:
setCentreEnergyin interfaceIElectronAnalyser- Parameters:
value- The requested centre energy- Throws:
Exception- If there is a problem with the EPICS communication
-
getCentreEnergy
Description copied from interface:IElectronAnalyserGets the current centre energy- Specified by:
getCentreEnergyin interfaceIElectronAnalyser- Returns:
- The current centre energy
- Throws:
Exception- If there is a problem with the EPICS communication
-
setEndEnergy
- Throws:
Exception
-
getEndEnergy
- Throws:
Exception
-
setEnergyStep
Description copied from interface:IElectronAnalyserSets the step size- Specified by:
setEnergyStepin interfaceIElectronAnalyser- Parameters:
value- The step size- Throws:
Exception
-
getEnergyStep
Description copied from interface:IElectronAnalyserGets the step size- Specified by:
getEnergyStepin interfaceIElectronAnalyser- Returns:
- step size
- Throws:
Exception
-
zeroSupplies
Description copied from interface:IElectronAnalyserStops the analyser and zeros the HV supplies. This puts the analyser into a safe state.- Specified by:
zeroSuppliesin interfaceIElectronAnalyser- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
stopAfterCurrentIteration
Description copied from interface:IElectronAnalyserStops the analyser after the current iteration and saves the data.- Specified by:
stopAfterCurrentIterationin interfaceIElectronAnalyser- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
zeroSuppliesIgnoreErrors
public void zeroSuppliesIgnoreErrors() -
monitorChanged
public void monitorChanged(gov.aps.jca.event.MonitorEvent arg0) - Specified by:
monitorChangedin interfacegov.aps.jca.event.MonitorListener
-
getEntranceSlitInformationProvider
-
setEntranceSlitInformationProvider
public void setEntranceSlitInformationProvider(EntranceSlitInformationProvider entranceSlitInformationProvider) -
atCommandFailure
Description copied from class:ScannableBaseHook to be used by Scan and pos commands to inform the Scannable that an exception, such as a DeviceExcpetion, has occurred. However not called when the command is aborted using an InterruptionException. If a Scan is aborted then onlyScannable.stop()will be called by the Scan or pos command.Useful for telling Scannables which hold state during a scan for example, to reset themselves. Used for example by CoordinatedMotionScannables. This hook should be used not in the same way as the stop hook. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.
- Specified by:
atCommandFailurein interfaceScannable- Overrides:
atCommandFailurein classADDetector- Throws:
DeviceException- See Also:
-
stop
Description copied from class:ScannableBaseStop the current move/operation. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
stopin interfaceIElectronAnalyser- Specified by:
stopin interfaceScannable- Overrides:
stopin classADDetector- Throws:
DeviceException- See Also:
-
getCpsRoiProvider
-
setCpsRoiProvider
-
getCentreEnergyScannable
-
createNXDetectorData
- Overrides:
createNXDetectorDatain classADDetector- Throws:
ExceptionDeviceException
-
collectData
Description copied from interface:DetectorTells the detector to begin to collect a set of data, then returns immediately. Should cause the hardware to start collecting immediately: if there is any delay then detectors used in the same scan would collect over different times when beam conditions may differ.- Specified by:
collectDatain interfaceDetector- Overrides:
collectDatain classADDetector- Throws:
DeviceException
-
waitWhileBusy
Description copied from class:ScannableBaseReturns when operation carried out by moveTo has completed If this is to be overriden, isBusy must also be valid. Although the pos and scan command currently use this method to determine if the Scannable is busy, this must not be relied upon.- Specified by:
waitWhileBusyin interfaceDetector- Specified by:
waitWhileBusyin interfaceScannable- Overrides:
waitWhileBusyin classADDetector- Throws:
InterruptedExceptionDeviceException
-
getEnergyRange
- Specified by:
getEnergyRangein interfaceIElectronAnalyser
-
setEnergyRange
-
getEnergyStepPerPixel
public double getEnergyStepPerPixel()Description copied from interface:IElectronAnalyserThis is the energy covered by one pixel in pass energy = 1 in meVTo find the energy step per pixel this value should be multiplied by the pass energy. To find the fixed mode energy width this value should be multiplied by the pass energy and the number of energy channels.
This value should not be used to calculate energy scales.
- Specified by:
getEnergyStepPerPixelin interfaceIElectronAnalyser
-
setEnergyStepPerPixel
public void setEnergyStepPerPixel(double energyStepPerPixel) -
getMaxKE
public double getMaxKE()Description copied from interface:IElectronAnalyserThis is the fall-back maximum kinetic energy (KE) if the energyRange object can't provide a correct energy range- Specified by:
getMaxKEin interfaceIElectronAnalyser
-
setMaxKE
public void setMaxKE(double maxKE) -
getFixedModeEnergyChannels
public int getFixedModeEnergyChannels()Description copied from interface:IElectronAnalyserThis gets the number of energy channels in the fixed mode region, to allow the fixed mode energy width to be calculated.- Specified by:
getFixedModeEnergyChannelsin interfaceIElectronAnalyser- Returns:
- The number of energy channels in fixed mode
-
getSweptModeEnergyChannels
public int getSweptModeEnergyChannels()Description copied from interface:IElectronAnalyserThis gets the number of energy channels in the swept mode region, to allow the swept mode energy steps including pre-scan to be calculated- Specified by:
getSweptModeEnergyChannelsin interfaceIElectronAnalyser- Returns:
- The number of energy channels in swept mode
-
changeRequestedIterations
public void changeRequestedIterations(int max) Description copied from interface:IElectronAnalyserThis can be called to change the number of iterations scheduled during a scan.- Specified by:
changeRequestedIterationsin interfaceIElectronAnalyser- Parameters:
max-
-
startContinuous
Description copied from interface:IElectronAnalyserStarts the analyser acquiring in continuous mode, this is intended for use in alignment. This is non blocking- Specified by:
startContinuousin interfaceIElectronAnalyser- Throws:
Exception- If there is a problem with the EPICS communication
-
getIterations
Description copied from interface:IElectronAnalyserGets the currently set number of iterations- Specified by:
getIterationsin interfaceIElectronAnalyser- Returns:
- The current number of iterations
- Throws:
Exception- If there is a problem with the EPICS communication
-
getCompletedIterations
Description copied from interface:IElectronAnalyserGets the completed number of iterations from the most recent scan- Specified by:
getCompletedIterationsin interfaceIElectronAnalyser- Returns:
- The number of complete iterations from previous scan
- Throws:
Exception- If there is a problem with the EPICS communication
-
getCurrentIteration
Description copied from interface:IElectronAnalyserGets the current iteration number in the scan- Specified by:
getCurrentIterationin interfaceIElectronAnalyser- Returns:
- The current iteration number in the scan
- Throws:
Exception- If there is a problem with the EPICS communication
-
setIterations
Description copied from interface:IElectronAnalyserSets the number of iterations requested, not for use while in a scan- Specified by:
setIterationsin interfaceIElectronAnalyser- Parameters:
iterations- The requested number of iterations- Throws:
Exception- If there is a problem with the EPICS communication- See Also:
-
getSlices
Gets the number of slices. i.e the number of non-energy (Y channels) that will be recorded. The data is binned in the Y direction.- Specified by:
getSlicesin interfaceIElectronAnalyser- Returns:
- Current number of slices
- Throws:
Exception- If there is a problem at the EPICS level
-
setSlices
Sets the number of slices to record i.e the number of non-energy (Y channels) that will be recorded. The data is binned in the Y direction.- Parameters:
slices- The requested number of slices- Throws:
Exception- If there is a problem at the EPICS level
-
getWorkFunctionProvider
-
setWorkFunctionProvider
-
getWorkFunction
public double getWorkFunction(double photonEnergy) -
getPgmEnergyScannable
-
setPgmEnergyScannable
-
getSpectrum
Description copied from interface:IElectronAnalyserGets the spectrum data acquired from the most recent acquisition- Specified by:
getSpectrumin interfaceIElectronAnalyser- Returns:
- The spectrum data
- Throws:
Exception- If there is a problem getting the spectrum
-
getImage
Description copied from interface:IElectronAnalyserGets the image acquired during the most recent acquisition- Specified by:
getImagein interfaceIElectronAnalyser- Returns:
- The image data
- Throws:
Exception- If there is a problem getting the image
-
getExcitationEnergy
Deprecated.Description copied from interface:IElectronAnalyserGets the excitation energy- Specified by:
getExcitationEnergyin interfaceIElectronAnalyser- Returns:
- The excitation energy
- Throws:
Exception- If there is a problem getting the value
-
getExtIO
Description copied from interface:IElectronAnalyserGets data from an external I/O device- Specified by:
getExtIOin interfaceIElectronAnalyser- Parameters:
length- The number of data elements to return- Returns:
- The data
- Throws:
Exception- If there is a problem getting the data
-
getFrames
Description copied from interface:IElectronAnalyserGets the value of the frames parameter- Specified by:
getFramesin interfaceIElectronAnalyser- Returns:
- The number of slices
- Throws:
Exception- If there is a problem getting the frames
-
getSupportedAcquisitionModes
Description copied from interface:IElectronAnalyserGets the list of supported acquisition mode, using AcquisitionMode enum. Allows UIs to support different models of electron analyser which may name their modes differently- Specified by:
getSupportedAcquisitionModesin interfaceIElectronAnalyser- Returns:
- The list of supported acquisition modes
-
setAcquisitionMode
Description copied from interface:IElectronAnalyserSets the acquisition mode- Specified by:
setAcquisitionModein interfaceIElectronAnalyser- Parameters:
value- The name of the acquisition mode- Throws:
Exception- If there is a problem setting acquisition mode
-
startAcquiring
Description copied from interface:IElectronAnalyserStarts the analyser acquiring data with the current parameters- Specified by:
startAcquiringin interfaceIElectronAnalyser- Throws:
Exception
-
getDetectorState
Description copied from interface:IElectronAnalyserGets the current state of the analyser- Specified by:
getDetectorStatein interfaceIElectronAnalyser- Returns:
- The current analyser state
- Throws:
Exception- If there is a problem getting the current state
-
setSingleImageMode
Description copied from interface:IElectronAnalyserSets the analyser to single image mode- Specified by:
setSingleImageModein interfaceIElectronAnalyser- Throws:
Exception- If there is a problem setting single image mode
-
getMaximumNumberOfSteps
public int getMaximumNumberOfSteps()Description copied from interface:IElectronAnalyserReturns the maximum number of steps the analyser can perform in a swept scan. Suggest returning Integer.MAX_VALUE if your analyser doesn't have a limit.- Specified by:
getMaximumNumberOfStepsin interfaceIElectronAnalyser- Returns:
- The maximum number of steps
-
getSensorSizeX
public int getSensorSizeX()Description copied from interface:IElectronAnalyserReturns sensor size along X direction. Declared as default to not change all implementations.- Specified by:
getSensorSizeXin interfaceIElectronAnalyser- Returns:
- Sensor size along X direction
-
getSensorSizeY
public int getSensorSizeY()Description copied from interface:IElectronAnalyserReturns sensor size along Y direction. Declared as default to not change all implementations.- Specified by:
getSensorSizeYin interfaceIElectronAnalyser- Returns:
- Sensor size along Y direction
-
getRegionSizeX
public int getRegionSizeX()Description copied from interface:IElectronAnalyserReturns region size along X direction. Declared as default to not change all implementations.- Specified by:
getRegionSizeXin interfaceIElectronAnalyser- Returns:
- Region size along X direction
-
getRegionSizeY
public int getRegionSizeY()Description copied from interface:IElectronAnalyserReturns region size along Y direction. Declared as default to not change all implementations.- Specified by:
getRegionSizeYin interfaceIElectronAnalyser- Returns:
- Region size along Y direction
-