Skip to content

Instantly share code, notes, and snippets.

@mrakitin
Created March 12, 2020 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrakitin/1c02cbbc59b609b91d1c800b9c759246 to your computer and use it in GitHub Desktop.
Save mrakitin/1c02cbbc59b609b91d1c800b9c759246 to your computer and use it in GitHub Desktop.
"""
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