Package gda.device.zebra.controller.impl
Class ZebraImpl
java.lang.Object
gda.factory.FindableBase
gda.device.zebra.controller.impl.ZebraImpl
public class ZebraImpl
extends FindableBase
implements Zebra, org.springframework.beans.factory.InitializingBean
-
Field Summary
FieldsFields inherited from interface gda.device.zebra.controller.Zebra
CONFIG_LOAD_OK, PC_ARM_SOURCE_EXTERNAL, PC_ARM_SOURCE_SOFT, PC_DIR_NEGATIVE, PC_DIR_POSITIVE, PC_ENC_ENC1, PC_ENC_ENC2, PC_ENC_ENC3, PC_ENC_ENC4, PC_ENC_ENCSUM, PC_GATE_SOURCE_EXTERNAL, PC_GATE_SOURCE_POSITION, PC_GATE_SOURCE_TIME, PC_MODE_POSITION, PC_MODE_TIME, PC_PULSE_SOURCE_EXTERNAL, PC_PULSE_SOURCE_POSITION, PC_PULSE_SOURCE_TIME, PC_TIMEUNIT_10SEC, PC_TIMEUNIT_MS, PC_TIMEUNIT_SEC, PULSE_TIMEUNIT_10SEC, PULSE_TIMEUNIT_MS, PULSE_TIMEUNIT_SEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyAndGateConfig(int gateNumber, LogicGateConfiguration config) Applies aLogicGateConfigurationto the specified AND gate.voidapplyOrGateConfig(int gateNumber, LogicGateConfiguration config) Applies aLogicGateConfigurationto the specified OR gate.voidvoidencCopyMotorPosToZebra(int posNum) doublegetDivDivisor(int divId) Get Divisor for the specified DIV blockReadOnlyPV<Double[]> Deprecated.ReadOnlyPV<Double[]> getEncPV(int encoder) intintReadOnlyPV<Double[]> getPcCapturePV(int capture) intgetPCDir()intgetPCEnc()intintdoubledoubledoubledoubledoubleintintbooleandoubledoubleintintdoubledoubledoubledoubledoubledoubleReadOnlyPV<Double[]> intgda.observable.Observable<SoftInputChangedEvent> Returns anObservablethat can be used to receive events about changes to soft inputs.booleangetTtlOutputState(int output) Returns the state of the specified TTL output.booleanbooleanbooleanbooleanbooleanisSoftInputSet(int inputNumber) Returns whether a soft input is set.booleanisSysStatSet(int sysStat) booleanDeprecated.voidpcArm()voidvoidpcDisarm()voidreset()Reset the zebra box and all internal counters.voidsetArmPutNoWait(boolean armPutNoWait) This is for EPICS support module versions 1-14 and above.
This switches the behaviour to be compatible with the way Area Detector behaves i.e.voidsetDivDivisor(int divId, double divisor) Set Divisor on the DIV blockvoidSet or change the name of the object (as defined in XML).voidsetOutTTL(int outId, int outputSignal) voidsetPCArmInput(int input) voidsetPCArmSource(int val) voidsetPCCaptureBitField(int val) voidsetPCDir(int val) voidsetPCEnc(int val) voidsetPCGateInput(int input) voidsetPCGateNumberOfGates(int val) voidsetPCGateSource(int val) voidsetPCGateStart(double val) voidsetPCGateStep(double val) voidsetPCGateWidth(double val) voidsetPCNumberOfPointsCaptured(int val) voidsetPCPulseDelay(double val) voidsetPCPulseInput(int input) voidsetPCPulseMax(int val) voidsetPCPulseSource(int val) voidsetPCPulseStart(double val) voidsetPCPulseStep(double val) voidsetPCPulseWidth(double val) voidsetPCTimeUnit(int val) voidsetPulseDelay(int pulseId, double delay) voidsetPulseInput(int pulseId, int inputSignal) voidsetPulseTimeUnit(int pulseId, int timeunit) voidsetPulseWidth(int pulseId, double width) voidsetPvFactory(CachedLazyPVFactory pvFactory) voidsetSoftInput(int inputNumber, boolean set) Sets a soft input.voidsetUseAvalField(boolean useAvalField) Deprecated.voidsetValue(String beforeUnderscore, int beforeUnderscoreId, String afterUnderscore, int afterUnderscoreId, int val) voidsetZebraConfigPath(String zebraConfigPath) voidsetZebraPrefix(String zebraPrefix) voidwaitUntilArmed(int timeout) voidwaitUntilNotArmed(int timeout) Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode
-
Field Details
-
PCCapture
-
-
Constructor Details
-
ZebraImpl
public ZebraImpl()
-
-
Method Details
-
setName
Description copied from interface:FindableSet or change the name of the object (as defined in XML).- Specified by:
setNamein interfaceFindable- Overrides:
setNamein classFindableBase- Parameters:
name- the object name
-
isArmPutNoWait
public boolean isArmPutNoWait() -
setArmPutNoWait
public void setArmPutNoWait(boolean armPutNoWait) This is for EPICS support module versions 1-14 and above.
This switches the behaviour to be compatible with the way Area Detector behaves i.e. a put with wait to arm the detector only returns once the acquisition is complete. -
setUseAvalField
Deprecated.This is for EPICS support module versions below 1-7- Specified by:
setUseAvalFieldin interfaceZebra- Parameters:
useAvalField- if true the captured ENC1 values are stored in .AVAL field ( original IOC interface). Default is false
-
isUseAvalField
Deprecated.- Specified by:
isUseAvalFieldin interfaceZebra
-
setPvFactory
- Specified by:
setPvFactoryin interfaceZebra
-
setPCPulseSource
- Specified by:
setPCPulseSourcein interfaceZebra- Parameters:
val- should be PC_PULSE_SOURCE_POSITION, PC_PULSE_SOURCE_TIME or PC_PULSE_SOURCE_EXTERNAL- Throws:
Exception
-
getPCPulseSource
- Specified by:
getPCPulseSourcein interfaceZebra- Throws:
Exception
-
setPCPulseDelay
- Specified by:
setPCPulseDelayin interfaceZebra- Throws:
Exception
-
getPCPulseDelay
- Specified by:
getPCPulseDelayin interfaceZebra- Throws:
Exception
-
getPCPulseDelayRBV
- Specified by:
getPCPulseDelayRBVin interfaceZebra- Throws:
Exception
-
setPCPulseStart
- Specified by:
setPCPulseStartin interfaceZebra- Throws:
Exception
-
getPCPulseStart
- Specified by:
getPCPulseStartin interfaceZebra- Throws:
Exception
-
getPCPulseStartRBV
- Specified by:
getPCPulseStartRBVin interfaceZebra- Throws:
Exception
-
setPCPulseWidth
- Specified by:
setPCPulseWidthin interfaceZebra- Throws:
Exception
-
getPCPulseWidth
- Specified by:
getPCPulseWidthin interfaceZebra- Throws:
Exception
-
getPCPulseWidthRBV
- Specified by:
getPCPulseWidthRBVin interfaceZebra- Throws:
Exception
-
setPCPulseStep
- Specified by:
setPCPulseStepin interfaceZebra- Throws:
Exception
-
getPCPulseStep
- Specified by:
getPCPulseStepin interfaceZebra- Throws:
Exception
-
getPCPulseStepRBV
- Specified by:
getPCPulseStepRBVin interfaceZebra- Throws:
Exception
-
getPCPulseMax
- Specified by:
getPCPulseMaxin interfaceZebra- Throws:
Exception
-
setPCPulseMax
- Specified by:
setPCPulseMaxin interfaceZebra- Throws:
Exception
-
setPCPulseInput
- Specified by:
setPCPulseInputin interfaceZebra- Throws:
Exception
-
setPCGateSource
- Specified by:
setPCGateSourcein interfaceZebra- Parameters:
val- should be PC_GATE_SOURCE_POSITION, PC_GATE_SOURCE_TIME or PC_GATE_SOURCE_EXTERNAL- Throws:
Exception
-
getPCGateSource
- Specified by:
getPCGateSourcein interfaceZebra- Throws:
Exception
-
setPCGateInput
- Specified by:
setPCGateInputin interfaceZebra- Throws:
Exception
-
setPCGateStart
- Specified by:
setPCGateStartin interfaceZebra- Throws:
Exception
-
getPCGateStart
- Specified by:
getPCGateStartin interfaceZebra- Throws:
Exception
-
getPCGateStartRBV
- Specified by:
getPCGateStartRBVin interfaceZebra- Throws:
Exception
-
setPCGateWidth
- Specified by:
setPCGateWidthin interfaceZebra- Throws:
Exception
-
getPCGateWidth
- Specified by:
getPCGateWidthin interfaceZebra- Throws:
Exception
-
getPCGateWidthRBV
- Specified by:
getPCGateWidthRBVin interfaceZebra- Throws:
Exception
-
setPCGateStep
- Specified by:
setPCGateStepin interfaceZebra- Throws:
Exception
-
getPCGateStep
- Specified by:
getPCGateStepin interfaceZebra- Throws:
Exception
-
setPCArmSource
- Specified by:
setPCArmSourcein interfaceZebra- Parameters:
val- should be PC_ARM_SOURCE_SOFT or PC_ARM_SOURCE_EXTERNAL- Throws:
Exception
-
getPCArmSource
- Specified by:
getPCArmSourcein interfaceZebra- Throws:
Exception
-
pcArm
-
waitUntilArmed
- Specified by:
waitUntilArmedin interfaceZebra- Throws:
Exception
-
pcDisarm
-
pcArmNoWait
- Specified by:
pcArmNoWaitin interfaceZebra- Throws:
Exception
-
waitUntilNotArmed
- Specified by:
waitUntilNotArmedin interfaceZebra- Throws:
Exception
-
isPCArmed
-
isGateBusy
- Throws:
Exception
-
isPulseBusy
- Throws:
Exception
-
setPCCaptureBitField
- Specified by:
setPCCaptureBitFieldin interfaceZebra- Throws:
Exception
-
getPCCaptureBitField
- Specified by:
getPCCaptureBitFieldin interfaceZebra- Throws:
Exception
-
setPCEnc
-
getPCEnc
-
setPCTimeUnit
- Specified by:
setPCTimeUnitin interfaceZebra- Parameters:
val- should be PC_TIMEUNIT_SEC or PC_TIMEUNIT_MS- Throws:
Exception
-
getPCTimeUnit
- Specified by:
getPCTimeUnitin interfaceZebra- Throws:
Exception
-
setPCGateNumberOfGates
- Specified by:
setPCGateNumberOfGatesin interfaceZebra- Throws:
Exception
-
getPCGateNumberOfGates
- Specified by:
getPCGateNumberOfGatesin interfaceZebra- Throws:
Exception
-
setPCNumberOfPointsCaptured
- Specified by:
setPCNumberOfPointsCapturedin interfaceZebra- Throws:
Exception
-
getPCNumberOfPointsCaptured
- Specified by:
getPCNumberOfPointsCapturedin interfaceZebra- Throws:
Exception
-
getPCNumberOfPointsDownloaded
- Specified by:
getPCNumberOfPointsDownloadedin interfaceZebra- Throws:
Exception
-
getPCPointDownloadInProgress
- Specified by:
getPCPointDownloadInProgressin interfaceZebra- Throws:
Exception
-
getZebraPrefix
- Specified by:
getZebraPrefixin interfaceZebra
-
setZebraPrefix
- Specified by:
setZebraPrefixin interfaceZebra
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getPcCapturePV
- Specified by:
getPcCapturePVin interfaceZebra
-
getEnc1AvalPV
Deprecated.- Specified by:
getEnc1AvalPVin interfaceZebra
-
getEncPV
-
getNumberOfPointsCapturedPV
- Specified by:
getNumberOfPointsCapturedPVin interfaceZebra
-
getNumberOfPointsDownloadedPV
- Specified by:
getNumberOfPointsDownloadedPVin interfaceZebra
-
getPCTimePV
- Specified by:
getPCTimePVin interfaceZebra
-
setPCDir
-
getPCDir
-
setPulseInput
- Specified by:
setPulseInputin interfaceZebra- Throws:
Exception
-
setPulseDelay
- Specified by:
setPulseDelayin interfaceZebra- Throws:
Exception
-
setPulseWidth
- Specified by:
setPulseWidthin interfaceZebra- Throws:
Exception
-
setPulseTimeUnit
- Specified by:
setPulseTimeUnitin interfaceZebra- Throws:
Exception
-
setOutTTL
-
getTtlOutputState
Description copied from interface:ZebraReturns the state of the specified TTL output.- Specified by:
getTtlOutputStatein interfaceZebra- Throws:
IOException
-
setValue
-
setPCArmInput
- Specified by:
setPCArmInputin interfaceZebra- Throws:
Exception
-
encCopyMotorPosToZebra
- Specified by:
encCopyMotorPosToZebrain interfaceZebra- Throws:
Exception
-
getSoftInputObservable
Description copied from interface:ZebraReturns anObservablethat can be used to receive events about changes to soft inputs.- Specified by:
getSoftInputObservablein interfaceZebra
-
isSoftInputSet
Description copied from interface:ZebraReturns whether a soft input is set.- Specified by:
isSoftInputSetin interfaceZebra- Throws:
IOException
-
setSoftInput
Description copied from interface:ZebraSets a soft input.- Specified by:
setSoftInputin interfaceZebra- Throws:
IOException
-
isSysStatSet
- Throws:
IOException
-
reset
Description copied from interface:ZebraReset the zebra box and all internal counters.- Specified by:
resetin interfaceZebra- Throws:
IOException
-
applyAndGateConfig
Description copied from interface:ZebraApplies aLogicGateConfigurationto the specified AND gate.- Specified by:
applyAndGateConfigin interfaceZebra- Throws:
IOException
-
applyOrGateConfig
Description copied from interface:ZebraApplies aLogicGateConfigurationto the specified OR gate.- Specified by:
applyOrGateConfigin interfaceZebra- Throws:
IOException
-
setDivDivisor
Description copied from interface:ZebraSet Divisor on the DIV block- Specified by:
setDivDivisorin interfaceZebra- Parameters:
divId- id to identify the DIV blockdivisor- numerical value of divisor- Throws:
Exception
-
getDivDivisor
Description copied from interface:ZebraGet Divisor for the specified DIV block- Specified by:
getDivDivisorin interfaceZebra- Parameters:
divId- id to identify the DIV block- Returns:
- numerical value of divisor (or null if not set)
- Throws:
Exception
-
applyZebraConfig
- Specified by:
applyZebraConfigin interfaceZebra- Throws:
IOException
-
getZebraConfigPath
- Specified by:
getZebraConfigPathin interfaceZebra- Throws:
IOException
-
setZebraConfigPath
- Specified by:
setZebraConfigPathin interfaceZebra- Throws:
IOException
-
getZebraConfigStatus
- Specified by:
getZebraConfigStatusin interfaceZebra- Throws:
IOException
-