Created
March 12, 2020 17:46
-
-
Save mrakitin/1c02cbbc59b609b91d1c800b9c759246 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This was developed on 03/12/2020 during the ALS hackathon for the COSMIC beamline. | |
""" | |
from ophyd import PVPositioner, EpicsSignal, EpicsSignalRO, Component as Cpt | |
class ALSMotor(PVPositioner): | |
setpoint = Cpt(EpicsSignal, 'ao-MO:DVAL') | |
readback = Cpt(EpicsSignalRO, 'ai-MO:DRBV') | |
stop_signal = Cpt(EpicsSignal, 'bo-MO:STOP') | |
stop_value = 1 | |
done = Cpt(EpicsSignalRO, 'bi-MO:DMOV') | |
done_value = 1 | |
sample_translate = ALSMotor('BCS701:SampleTranslate:', name='sample_translate') | |
sample_top = ALSMotor('BCS701:SampleTop:', name='sample_top') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment