Skip to content

Instantly share code, notes, and snippets.

@mrakitin

mrakitin/alsmotor.py

Created Mar 12, 2020
Embed
What would you like to do?
"""
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
You can’t perform that action at this time.