示例#1
0
    def __init__(self, inst, props, *args, **kwargs):

        try:
            MotorController.__init__(self, inst, props, *args, **kwargs)
            self.device = PyTango.DeviceProxy(self.DeviceName)
            self.startMultiple = {}
            self.positionMultiple = {}
            self.attributes = {}

        except Exception as e:
            self._log.error('Error when init: %s' % e)
            raise
    def __init__(self, inst, props, *args, **kwargs):

        self._target_temp = None
        self._current_temp = None
        try:
            MotorController.__init__(self, inst, props, *args, **kwargs)
            self.device = PyTango.DeviceProxy(self.DeviceName)
            self.attributes = {}

        except Exception as e:
            self._log.error('Error when init: %s' % e)
            raise
示例#3
0
    def __init__(self, inst, props, *args, **kwargs):
        MotorController.__init__(self, inst, props, *args, **kwargs)
        print("Epics Motor Prefix: ", self.PV)
        self.epicsmotorHW = EpicsMotorHW(self.PV)

        #super_class = super(CopleyController, self)
        #super_class.__init__(inst, props, *args, **kwargs)

        ### Epics PV initialization process
        epicsmotorHW = self.epicsmotorHW
        # if axis 1 exists, then use this method to check the epics PV
        #print("Check Epics Motor: {} OK ".format(epicsmotorHW.connectMotor(self.PV, 1)))
        epicsmotorHW.checkEpicsMotorNr(self.PV)
示例#4
0
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self, inst, props, *args, **kwargs)
     self.axisAttributes = {}
     self.interlockProxy = None
     try:
         print self.MotorName, self.InterlockDevice
         self.motorProxy = DeviceProxy(self.MotorName)
         if self.InterlockDevice != "":
             self.interlockProxy = DeviceProxy(self.InterlockDevice)
     except DevFailed, df:
         de = df[0]
         self._log.error("__init__ DevFailed: (%s) %s" %
                         (de.reason, de.desc))
         self._log.error("__init__ DevFailed: %s" % str(df))
    def __init__(self, inst, props, *args, **kwargs):
        """ Do the default init plus the icepap connection
        @param inst instance name of the controller
        @param properties of the controller
        """
        MotorController.__init__(self, inst, props, *args, **kwargs)
        self.ipap = IcePAPController(self.Host,
                                     self.Port,
                                     self.Timeout,
                                     auto_axes=True)
        self.attributes = {}
        self.state_multiple = []
        self.position_multiple = []
        self.move_multiple_grouped = []
        self.move_multiple_not_grouped = []
        self.stop_multiple = []
        self.abort_multiple = []

        # Set IcePAP library logging level
        import logging
        logger = logging.getLogger('icepap')
        logger.setLevel(self.IcepapLogLevel)
        self._log.debug('Icepap logging level set to %s' % self.IcepapLogLevel)
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self, inst, props, *args, **kwargs)
     self.xyz_stage = XYZStage(self.Host, self.Port)
     self._states = {}
     self._raw_states = [None] * 3
示例#7
0
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self, inst, props, *args, **kwargs)
     self.m = self.MaxDevice*[None,]
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self, inst, props, *args, **kwargs)
     self.m = self.MaxDevice * [
         None,
     ]
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self,inst, props, *args, **kwargs)
     self.blender_blades = blenderBlades.BlenderBlades('127.0.0.1', 9999)
示例#10
0
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self, inst, props, *args, **kwargs)
     self.axisAttributes = {}
示例#11
0
 def __init__(self, inst, props, *args, **kwargs):
     MotorController.__init__(self,inst, props, *args, **kwargs)
     #super_class = super(CopleyController, self)
     #super_class.__init__(inst, props, *args, **kwargs)
     self.copleyController = EpicsObject()