fix: bugfix stage/unstage

This commit is contained in:
appel_c 2023-08-02 22:07:19 +02:00
parent 7ad423b364
commit 39220f20ea

View File

@ -6,7 +6,7 @@ Created on Tue Nov 9 16:12:47 2021
"""
from ophyd import Device, Component, EpicsSignal, EpicsSignalRO, Kind
from ophyd import PositionerBase, PVPositioner, Signal
from ophyd import PVPositioner, Signal
from ophyd.pseudopos import (
pseudo_position_argument,
real_position_argument,
@ -174,11 +174,14 @@ class DelayGeneratorDG645(Device):
def stage(self):
"""Trigger the generator by arming to accept triggers"""
self.arm.write(1).wait()
# TODO check PV TriggerDelayBO, seems to be a bug in the IOC
# self.arm.write(1).wait()
super().stage()
def unstage(self):
"""Stop the trigger generator from accepting triggers"""
self.arm.write(0).wait()
# self.arm.write(0).wait()
super().stage()
def burstEnable(self, count, delay, period, config="all"):
"""Enable the burst mode"""