コード例 #1
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.direction = None
        self.socket = None
        self.enabled = False

        atexit.register(self.close)
コード例 #2
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.direction = None
        self.socket = None
        self.enabled = False

        atexit.register(self.close)
コード例 #3
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name=name)

        self.det_width = None
        self.det_height = None
        self._hwr_detector = None
        self._hwr_energy = None
        self.det_beam = {}
コード例 #4
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     Device.__init__(self, name)
     self.predefined_positions = {}
     self.motor = None
     self.delta = 0.001
     self.positions = {}
     self._last_position_name = None
コード例 #5
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     Device.__init__(self, name)
     self.predefined_positions = {}
     self.motor = None
     self.delta = 0.001
     self.positions = {}
     self._last_position_name = None
コード例 #6
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.username = None
     self._motor_pos_suffix = None
     self._motor_state_suffix = None
     self._exporter = None
     self._exporter_address = None
     self.motor_position = None
     self.motor_state = None
コード例 #7
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.chan_position = None
        self.chan_state = None
        self.chan_limits = None
        self.cmd_set_position = None
        self.cmd_stop_axis = None
        self.cmd_set_online = None

        self.step_limits = None
コード例 #8
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.motor_pos_attr_suffix = "Position"
     self.motor_state_attr_suffix = "State"
     self.translate_state = {
         MicrodiffMotor.NOTINITIALIZED: self.motor_states.NOTINITIALIZED,
         MicrodiffMotor.UNUSABLE: self.motor_states.BUSY,
         MicrodiffMotor.READY: self.motor_states.READY,
         MicrodiffMotor.MOVESTARTED: self.motor_states.MOVESTARTED,
         MicrodiffMotor.MOVING: self.motor_states.MOVING,
         MicrodiffMotor.ONLIMIT: self.motor_states.HIGHLIMIT,
     }
コード例 #9
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.interlock_set = None
        self.limits = None

        self.chan_position = None
        self.chan_state = None
        self.chan_min_value = None
        self.chan_max_value = None
        self.chan_interlock_state = None
        self.cmd_stop = None
コード例 #10
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.motor_pos_attr_suffix = "Position"
     self.motor_state_attr_suffix = "State"
     self.translate_state = {
         MicrodiffMotor.NOTINITIALIZED: self.motor_states.NOTINITIALIZED,
         MicrodiffMotor.UNUSABLE: self.motor_states.BUSY,
         MicrodiffMotor.READY: self.motor_states.READY,
         MicrodiffMotor.MOVESTARTED: self.motor_states.MOVESTARTED,
         MicrodiffMotor.MOVING: self.motor_states.MOVING,
         MicrodiffMotor.ONLIMIT: self.motor_states.HIGHLIMIT,
     }
コード例 #11
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.stop_command = None
     self.position_channel = None
     self.state_channel = None
     self.taurusname = None
     self.motor_position = 0.0
     self.threshold_default = 0.0018
     self.move_threshold_default = 0.0
     self.polling_default = "events"
     self.limit_upper = None
     self.limit_lower = None
     self.static_limits = (-1e4, 1e4)
     self.limits = (None, None)
     self.motor_state = MotorStates.NOTINITIALIZED
コード例 #12
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.stop_command = None
     self.position_channel = None
     self.state_channel = None
     self.taurusname = None
     self.motor_position = 0.0
     self.threshold_default = 0.0018
     self.move_threshold_default = 0.0
     self.polling_default = "events"
     self.limit_upper = None
     self.limit_lower = None
     self.static_limits = (-1e4, 1e4)
     self.limits = (None, None)
     self.motor_state = MotorStates.NOTINITIALIZED
コード例 #13
0
    def __init__(self, name):
        """
        init
        :param name:
        """
        AbstractMotor.__init__(self, name)

        self.previous_position = None

        self.chan_position = None
        self.chan_state = None
        self.chan_limits = None
        self.cmd_set_position = None
        self.cmd_stop_axis = None
        self.cmd_set_online = None

        self.epsilon = None
        self.username = None
        self.step_limits = None
コード例 #14
0
    def __init__(self, *args, **kwargs):
        AbstractMotor.__init__(self, name="Resolution")

        # self.get_value = self.getPosition
        self.valid = True
コード例 #15
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.motor_pos_attr_suffix = "Position"
コード例 #16
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self.motor_obj = None
コード例 #17
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.motor_name = None
        self.motor_resolution = None
        self.motor_pos_attr_suffix = None
コード例 #18
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.motor_pos_attr_suffix = "Position"
コード例 #19
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.__move_task = None
コード例 #20
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.__move_task = None
コード例 #21
0
    def __init__(self, name):
        AbstractMotor.__init__(self, name)

        self.motor_name = None
        self.motor_resolution = None
        self.motor_pos_attr_suffix = None
コード例 #22
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     Device.__init__(self, name)
     self.camera = None
コード例 #23
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
コード例 #24
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
コード例 #25
0
 def __init__(self, name):
     AbstractMotor.__init__(self, name)
     self._wrap_range = None