-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(DiamondLightSource/hyperion#779) Initial fluo optimise fixes
- Loading branch information
1 parent
4337a5f
commit 1cab3a7
Showing
3 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from ophyd import Component, Device, EpicsSignal, EpicsSignalRO | ||
|
||
from dodal.devices.status import await_value | ||
|
||
|
||
class SampleShutter(Device): | ||
"""Simple device to trigger the pneumatic in/out""" | ||
|
||
CLOSE = 0 | ||
OPEN = 1 | ||
|
||
pos: EpicsSignal = Component(EpicsSignal, "CTRL2") | ||
pos_rbv: EpicsSignal = Component(EpicsSignalRO, "STA") | ||
|
||
def set(self, open: int): | ||
sp_status = self.pos.set(open) | ||
rbv_status = await_value(self.pos_rbv, open) | ||
return sp_status & rbv_status |
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