Skip to content

Commit

Permalink
Merge pull request #1085 from vespos/slit_blades
Browse files Browse the repository at this point in the history
add single blades control by making a new LusiSlitsWithBlades class
  • Loading branch information
vespos authored Nov 18, 2022
2 parents 23a747b + d7fa384 commit b66e680
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
1085 Add blades to LusiSlits
#################

API Changes
-----------
- N/A

Features
--------
- N/A

Device Updates
--------------
- Update LusiSlits to include individual blade controls.

New Devices
-----------
- N/A

Bugfixes
--------
- N/A

Maintenance
-----------
- N/A

Contributors
------------
- espov, tangkong
9 changes: 8 additions & 1 deletion pcdsdevices/slits.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from .areadetector.detectors import PCDSAreaDetectorTyphosTrigger
from .device import GroupDevice
from .device import UpdateComponent as UpCpt
from .epics_motor import BeckhoffAxis, BeckhoffAxisNoOffset
from .epics_motor import BeckhoffAxis, BeckhoffAxisNoOffset, PCDSMotorBase
from .interface import (BaseInterface, FltMvInterface, LightpathInOutCptMixin,
LightpathMixin, MvInterface)
from .pmps import TwinCATStatePMPS
Expand Down Expand Up @@ -424,12 +424,19 @@ class LusiSlits(SlitsBase):
xcenter = Cpt(LusiSlitPositioner, '', slit_type='XCENTER', kind='normal')
ycenter = Cpt(LusiSlitPositioner, '', slit_type='YCENTER', kind='normal')

# Individual blade aliases
blade_top = Cpt(PCDSMotorBase, ':TOP', kind='normal')
blade_bottom = Cpt(PCDSMotorBase, ':BOTTOM', kind='normal')
blade_north = Cpt(PCDSMotorBase, ':NORTH', kind='normal')
blade_south = Cpt(PCDSMotorBase, ':SOUTH', kind='normal')

# Local PVs
blocked = Cpt(EpicsSignalRO, ':BLOCKED', kind='omitted')
open_cmd = Cpt(EpicsSignal, ':OPEN', kind='omitted')
close_cmd = Cpt(EpicsSignal, ':CLOSE', kind='omitted')
block_cmd = Cpt(EpicsSignal, ':BLOCK', kind='omitted')

tab_whitelist = ['blade_top', 'blade_bottom', 'blade_north', 'blade_south']
lightpath_cpts = ['xwidth.readback', 'ywidth.readback']

def open(self):
Expand Down

0 comments on commit b66e680

Please sign in to comment.