def __init__(self, devClass, fakeControllerClass, name = "", verbose = False, port = 0, debug = False, ): """Construct an ArcticDeviceWrapper that manages its fake controller @param[in] name name of device @param[in] devClass either ShutterDevice or FakeFilterWheelDevice @param[in] port the port for the fake Galil @param[in] debug print debug messages to stdout? """ self.devClass = devClass controller = fakeControllerClass( name = "fake" + name, port = port, ) DeviceWrapper.__init__(self, name = name, controller = controller, debug = debug, )
def __init__( self, devClass, fakeControllerClass, name="", verbose=False, port=0, debug=False, ): """Construct an ArcticDeviceWrapper that manages its fake controller @param[in] name name of device @param[in] devClass either ShutterDevice or FakeFilterWheelDevice @param[in] port the port for the fake Galil @param[in] debug print debug messages to stdout? """ self.devClass = devClass controller = fakeControllerClass( name="fake" + name, port=port, ) DeviceWrapper.__init__( self, name=name, controller=controller, debug=debug, )
def __init__(self, name="arcticfilterwheel", port=0): """!Construct a FilterWheelDeviceWrapper that manages its fake mirror controller @param[in] name a name """ controllerWrapper = ArcticFWActorWrapper(name="arcticFWActorWrapper", ) DeviceWrapper.__init__(self, name=name, stateCallback=None, controllerWrapper=controllerWrapper)
def __init__(self, name="arcticfilterwheel", port=0 ): """!Construct a FilterWheelDeviceWrapper that manages its fake mirror controller @param[in] name a name """ controllerWrapper = ArcticFWActorWrapper( name="arcticFWActorWrapper", ) DeviceWrapper.__init__(self, name=name, stateCallback=None, controllerWrapper=controllerWrapper)
def __init__(self, name, stateCallback=None, port=0, debug=False, logReplies=False): """!Construct a MeasScaleDeviceWrapper that manages its fake axis controller @param[in] name a string @param[in] stateCallback function to call when connection state of hardware controller or device changes; receives one argument: this device wrapper @param[in] port port for device; 0 to assign a free port @param[in] debug if True, print debug messages @param[in] logReplies should the FakeAxisCtrl print replies to stdout? """ controller = FakeMeasScaleCtrl(name=name, port=port) DeviceWrapper.__init__(self, name=name, stateCallback=stateCallback, controller=controller, debug=debug)
def _basicClose(self): """Explicitly kill all timers, to keep twisted dirty reactor errors showing up during tests. """ self.controller.moveTimer.cancel() self.device._statusTimer.cancel() return DeviceWrapper._basicClose(self)
def _basicClose(self): """Explicitly kill all timers """ return DeviceWrapper._basicClose(self)
def _basicClose(self): """Explicitly kill all timers """ self.controller.moveTimer.cancel() self.controller.positionTimer.cancel() return DeviceWrapper._basicClose(self)