Skip to content

Commit

Permalink
update to pandapmac
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Sep 11, 2024
1 parent aab9884 commit 35cdddc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ophyd_async/fastcs/panda/_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ def get_deadtime(self, exposure: float) -> float:
async def prepare(self, trigger_info: TriggerInfo):
assert trigger_info.trigger in (
DetectorTrigger.constant_gate,
trigger_info.trigger == DetectorTrigger.variable_gate,
DetectorTrigger.variable_gate,
), "Only constant_gate and variable_gate triggering is supported on the PandA"
await asyncio.gather(self.pcap.arm.set(True))
await wait_for_value(self.pcap.active, True, timeout=1)

async def arm(self) -> AsyncStatus:
return AsyncStatus(wait_for_value(self.pcap.active, False, timeout=None))

async def disarm(self) -> AsyncStatus:
async def disarm(self):
await asyncio.gather(self.pcap.arm.set(False))
await wait_for_value(self.pcap.active, False, timeout=1)
return AsyncStatus(wait_for_value(self.pcap.active, False, timeout=None))

0 comments on commit 35cdddc

Please sign in to comment.