Package gda.device.zebra.controller
Interface Zebra
- All Known Implementing Classes:
ZebraDummy,ZebraImpl
public interface Zebra
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intDeprecated.static final intDeprecated.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAndGateConfig(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.booleanbooleanisSoftInputSet(int inputNumber) Returns whether a soft input is set.booleanvoidpcArm()voidvoidpcDisarm()voidreset()Reset the zebra box and all internal counters.voidsetDivDivisor(int divId, double divisor) Set Divisor on the DIV blockvoidsetOutTTL(int outId, int val) voidsetPCArmInput(int input) voidsetPCArmSource(int ordinal) voidsetPCCaptureBitField(int val) voidsetPCDir(int i) voidsetPCEnc(int val) voidsetPCGateInput(int input) voidsetPCGateNumberOfGates(int numberOfGates) voidsetPCGateSource(int ordinal) voidsetPCGateStart(double start) voidsetPCGateStep(double step) voidsetPCGateWidth(double width) voidsetPCNumberOfPointsCaptured(int val) voidsetPCPulseDelay(double delay) voidsetPCPulseInput(int input) voidsetPCPulseMax(int numberTriggers) voidsetPCPulseSource(int ordinal) voidsetPCPulseStart(double val) voidsetPCPulseStep(double step) voidsetPCPulseWidth(double width) voidsetPCTimeUnit(int i) voidsetPulseDelay(int pulseId, double delay) voidsetPulseInput(int pulseId, int input) 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) voidsetValue(String beforeUnderscore, int beforeUnderscoreId, String afterUnderscore, int afterUnderscoreId, int val) voidsetZebraConfigPath(String zebraConfigPath) voidsetZebraPrefix(String zebraPrefix) voidwaitUntilArmed(int timeout) voidwaitUntilNotArmed(int timeout)
-
Field Details
-
PC_ENC_ENC1
static final int PC_ENC_ENC1- See Also:
-
PC_ENC_ENC2
static final int PC_ENC_ENC2- See Also:
-
PC_ENC_ENC3
static final int PC_ENC_ENC3- See Also:
-
PC_ENC_ENC4
static final int PC_ENC_ENC4- See Also:
-
PC_ENC_ENCSUM
static final int PC_ENC_ENCSUM- See Also:
-
PC_DIR_POSITIVE
static final int PC_DIR_POSITIVE- See Also:
-
PC_DIR_NEGATIVE
static final int PC_DIR_NEGATIVE- See Also:
-
PC_TIMEUNIT_10SEC
static final int PC_TIMEUNIT_10SEC- See Also:
-
PC_TIMEUNIT_SEC
static final int PC_TIMEUNIT_SEC- See Also:
-
PC_TIMEUNIT_MS
static final int PC_TIMEUNIT_MS- See Also:
-
PC_ARM_SOURCE_SOFT
static final int PC_ARM_SOURCE_SOFT- See Also:
-
PC_ARM_SOURCE_EXTERNAL
static final int PC_ARM_SOURCE_EXTERNAL- See Also:
-
PC_GATE_SOURCE_POSITION
static final int PC_GATE_SOURCE_POSITION- See Also:
-
PC_GATE_SOURCE_TIME
static final int PC_GATE_SOURCE_TIME- See Also:
-
PC_GATE_SOURCE_EXTERNAL
static final int PC_GATE_SOURCE_EXTERNAL- See Also:
-
PC_PULSE_SOURCE_POSITION
static final int PC_PULSE_SOURCE_POSITION- See Also:
-
PC_PULSE_SOURCE_TIME
static final int PC_PULSE_SOURCE_TIME- See Also:
-
PC_PULSE_SOURCE_EXTERNAL
static final int PC_PULSE_SOURCE_EXTERNAL- See Also:
-
PC_MODE_POSITION
Deprecated.- See Also:
-
PC_MODE_TIME
Deprecated.- See Also:
-
PULSE_TIMEUNIT_10SEC
static final int PULSE_TIMEUNIT_10SEC- See Also:
-
PULSE_TIMEUNIT_SEC
static final int PULSE_TIMEUNIT_SEC- See Also:
-
PULSE_TIMEUNIT_MS
static final int PULSE_TIMEUNIT_MS- See Also:
-
CONFIG_LOAD_OK
- See Also:
-
-
Method Details
-
setUseAvalField
void setUseAvalField(boolean useAvalField) -
isUseAvalField
boolean isUseAvalField() -
setPvFactory
-
getPCPulseDelay
- Throws:
Exception
-
getPCPulseDelayRBV
- Throws:
Exception
-
setPCPulseDelay
- Throws:
Exception
-
getPCPulseWidth
- Throws:
Exception
-
getPCPulseWidthRBV
- Throws:
Exception
-
setPCPulseWidth
- Throws:
Exception
-
getPCPulseStep
- Throws:
Exception
-
getPCPulseStepRBV
- Throws:
Exception
-
setPCPulseInput
- Throws:
Exception
-
setPCPulseStep
- Throws:
Exception
-
setPCPulseSource
- Parameters:
ordinal- should be PC_PULSE_SOURCE_POSITION, PC_PULSE_SOURCE_TIME or PC_PULSE_SOURCE_EXTERNAL- Throws:
Exception
-
getPCPulseSource
- Throws:
Exception
-
getPCGateSource
- Throws:
Exception
-
setPCGateSource
- Parameters:
ordinal- should be PC_GATE_SOURCE_POSITION, PC_GATE_SOURCE_TIME or PC_GATE_SOURCE_EXTERNAL- Throws:
Exception
-
setPCGateInput
- Throws:
Exception
-
getPCGateStart
- Throws:
Exception
-
getPCGateStartRBV
- Throws:
Exception
-
getPCGateWidth
- Throws:
Exception
-
getPCGateNumberOfGates
- Throws:
Exception
-
getPCGateStep
- Throws:
Exception
-
setPCGateStart
- Throws:
Exception
-
setPCGateWidth
- Throws:
Exception
-
getPCGateWidthRBV
- Throws:
Exception
-
setPCGateNumberOfGates
- Throws:
Exception
-
setPCGateStep
- Throws:
Exception
-
getPCArmSource
- Throws:
Exception
-
setPCArmSource
- Parameters:
ordinal- should be PC_ARM_SOURCE_SOFT or PC_ARM_SOURCE_EXTERNAL- Throws:
Exception
-
isPCArmed
- Throws:
Exception
-
pcArm
- Throws:
Exception
-
waitUntilArmed
- Throws:
Exception
-
pcDisarm
- Throws:
Exception
-
pcArmNoWait
- Throws:
Exception
-
waitUntilNotArmed
- Throws:
Exception
-
setPCCaptureBitField
- Throws:
Exception
-
getPCCaptureBitField
- Throws:
Exception
-
setPCEnc
- Parameters:
val- should be PC_ENC_ENC1, PC_ENC_ENC2, PC_ENC_ENC3, PC_ENC_ENC4 or PC_ENC_ENCSUM- Throws:
Exception
-
getPCEnc
- Throws:
Exception
-
getPcCapturePV
-
getEnc1AvalPV
Deprecated. -
getEncPV
-
getNumberOfPointsCapturedPV
ReadOnlyPV<Integer> getNumberOfPointsCapturedPV() -
setPCNumberOfPointsCaptured
- Throws:
Exception
-
getPCNumberOfPointsCaptured
- Throws:
Exception
-
getPCNumberOfPointsDownloaded
- Throws:
Exception
-
getPCPointDownloadInProgress
- Throws:
Exception
-
getZebraPrefix
String getZebraPrefix() -
setZebraPrefix
-
applyZebraConfig
- Throws:
IOException
-
getZebraConfigPath
- Throws:
IOException
-
setZebraConfigPath
- Throws:
IOException
-
getZebraConfigStatus
- Throws:
IOException
-
setPCTimeUnit
- Parameters:
i- should be PC_TIMEUNIT_SEC or PC_TIMEUNIT_MS- Throws:
Exception
-
getPCTimeUnit
- Throws:
Exception
-
setPCPulseMax
- Throws:
Exception
-
getPCPulseMax
- Throws:
Exception
-
getNumberOfPointsDownloadedPV
ReadOnlyPV<Integer> getNumberOfPointsDownloadedPV() -
getPCTimePV
ReadOnlyPV<Double[]> getPCTimePV() -
setPCDir
- Parameters:
i- should be PC_DIR_POSITIVE or PC_DIR_NEGATIVE- Throws:
Exception
-
getPCDir
- Throws:
Exception
-
setPulseInput
- Throws:
Exception
-
setPulseDelay
- Throws:
Exception
-
setPulseWidth
- Throws:
Exception
-
setPulseTimeUnit
- Throws:
Exception
-
setOutTTL
- Throws:
Exception
-
getTtlOutputState
Returns the state of the specified TTL output.- Throws:
IOException
-
setValue
void setValue(String beforeUnderscore, int beforeUnderscoreId, String afterUnderscore, int afterUnderscoreId, int val) throws Exception - Throws:
Exception
-
setPCArmInput
- Throws:
Exception
-
isSoftInputSet
Returns whether a soft input is set.- Throws:
IOException
-
setSoftInput
Sets a soft input.- Throws:
IOException
-
getSoftInputObservable
gda.observable.Observable<SoftInputChangedEvent> getSoftInputObservable()Returns anObservablethat can be used to receive events about changes to soft inputs. -
encCopyMotorPosToZebra
- Throws:
Exception
-
reset
Reset the zebra box and all internal counters.- Throws:
IOException
-
setPCPulseStart
- Throws:
Exception
-
getPCPulseStart
- Throws:
Exception
-
getPCPulseStartRBV
- Throws:
Exception
-
applyAndGateConfig
Applies aLogicGateConfigurationto the specified AND gate.- Throws:
IOException
-
applyOrGateConfig
Applies aLogicGateConfigurationto the specified OR gate.- Throws:
IOException
-
setDivDivisor
Set Divisor on the DIV block- Parameters:
divId- id to identify the DIV blockdivisor- numerical value of divisor- Throws:
Exception
-
getDivDivisor
Get Divisor for the specified DIV block- Parameters:
divId- id to identify the DIV block- Returns:
- numerical value of divisor (or null if not set)
- Throws:
Exception
-