from time import sleep from epics import PV from slic.devices.general.delay_stage import Delay from slic.devices.general.motor import Motor motor_name = "SLAAT21-LMOT-M703:MOT" pvname_disable = motor_name + ".DISV" pv_disable = PV(pvname_disable) class SpecialMotor(Motor): def set_target_value(self, value): # print("enable") pv_disable.put(1) # print("set") super().set_target_value(value) # print("done") pv_disable.put(0) # print("disable") mot703 = SpecialMotor(motor_name, name="Special M703") del703 = Delay(mot703, name="Special M703 as delay") # 371623.75846026116