Package uk.ac.gda.tomography.devices.p2r
Class P2RZebraConstantVelMoveController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.zebra.ZebraConstantVelocityMoveController
uk.ac.gda.tomography.devices.p2r.P2RZebraConstantVelMoveController
- All Implemented Interfaces:
ConstantVelocityMoveController,ConstantVelocityMoveController2,ContinuousMoveController,HardwareTriggerProvider,Device,Scannable,ContinuouslyScannableViaController,PositionCallableProvider<Double>,PositionStreamIndexerProvider<Double>,Configurable,Findable,gda.observable.IObservable,org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.device.zebra.ZebraConstantVelocityMoveController
ZebraConstantVelocityMoveController.MaxCollectionTimeAndMinAccelerationTime -
Field Summary
FieldsFields inherited from class gda.device.zebra.ZebraConstantVelocityMoveController
DEFAULT_PC_PULSE_GATE_TRIM, pcGateStartRBV, pcGateWidthRBV, PRIMARY_INDEXERS, SECONDARY_INDEXERSFields 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 TypeMethodDescriptionvoidCalled for every Scannable at the end of every scanvoidCalled for every Scannable at the start of every scangetPositionSteamIndexer(int index) Get a PositionStreamIndexer for a Zebra position capture stream.voidprotected voidsetupGateAndArm(double pcGateStart, double pcGateWidth, double step, double pcGateTimeInS) sets gate source to external configure P2R to give triggers at pcGateStart arm p2R setup zebra to create a gate from the trigger pulse that lasts for long enoughvoidstop()Stop the current move/operation.Methods inherited from class gda.device.zebra.ZebraConstantVelocityMoveController
addPoint, afterPropertiesSet, atCommandFailure, atScanStart, checkRBV, configure, createScannable, getContinuousMoveController, getDetectors, getEnd, getLastPointAdded, getMaxCollectionTimeAndMinAccelerationTimeFromDetectors, getMinimumAccelerationDistance, getMode, getNumberTriggers, getPcCaptureBitField, getPcPulseGateTrim, getPcPulseTriggerWidth, getPointBeingPrepared, getPositionCallable, getRequiredSpeed, getScannableMotor, getScannableMotorEndPosition, getStart, getStep, getTimeSeriesCollection, getTimeUnitConversionAndSetTimeUnit, getTotalTime, getTriggeredControllers, getTriggerPeriod, getZebra, getZebraMotorInfoProvider, isBusy, isMoving, isOperatingContinously, isPcPulseGateNotTrigger, prepareControllerToBeUsedForUpcomingScan, prepareForMove, rawGetPosition, resetPointBeingPrepared, setContinuousMoveController, setDetectors, setEnd, setMinimumAccelerationDistance, setMode, setOperatingContinuously, setPcPulseGateNotTrigger, setPcPulseGateTrim, setPcPulseTriggerWidth, setRequiredSpeed, setScannableMotor, setScannableMotorEndPosition, setScannableToMove, setStart, setStep, setTimeSeriesCollection, setTriggeredControllers, setTriggerPeriod, setZebra, setZebraMotorInfoProvider, startMove, stopAndReset, waitWhileMovingMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, asynchronousMoveTo, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, checkPositionValid, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toFormattedString, toString, validateScannable, valueUnavailableString, waitWhileBusy, 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.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString, waitWhileBusy
-
Field Details
-
started
protected static boolean started
-
-
Constructor Details
-
P2RZebraConstantVelMoveController
public P2RZebraConstantVelMoveController()
-
-
Method Details
-
getBidiAsciiCommunicator
-
setBidiAsciiCommunicator
-
setupGateAndArm
protected void setupGateAndArm(double pcGateStart, double pcGateWidth, double step, double pcGateTimeInS) throws Exception sets gate source to external configure P2R to give triggers at pcGateStart arm p2R setup zebra to create a gate from the trigger pulse that lasts for long enough- Overrides:
setupGateAndArmin classZebraConstantVelocityMoveController- Throws:
Exception
-
atScanLineStart
Description copied from class:ScannableBaseCalled for every Scannable at the start of every scan Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanLineStartin interfaceScannable- Overrides:
atScanLineStartin classZebraConstantVelocityMoveController- Throws:
DeviceException- See Also:
-
atScanLineEnd
Description copied from class:ScannableBaseCalled for every Scannable at the end of every scan Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanLineEndin interfaceScannable- Overrides:
atScanLineEndin classZebraConstantVelocityMoveController- 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 interfaceScannable- Overrides:
stopin classZebraConstantVelocityMoveController- Throws:
DeviceException- See Also:
-
getPositionSteamIndexer
Description copied from class:ZebraConstantVelocityMoveControllerGet a PositionStreamIndexer for a Zebra position capture stream. Since each stream can only be used once, allow secondary clients to access copies of position streams by using an offset on the index. Indices 0 to 4 are ENC1-4, 6 to 9 are DIV1-4 and 10 is Capture time. Primary indices 0 to 10 are mapped onto secondary indices 11 to 21.- Specified by:
getPositionSteamIndexerin interfacePositionStreamIndexerProvider<Double>- Overrides:
getPositionSteamIndexerin classZebraConstantVelocityMoveController
-