Пример #1
0
 def __init__(self, datasocket, pushsocket):
     threading.Thread.__init__(self)
     self.datasocket = datasocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = 25
     self.pid = PID.PID(pid_p=0.013, pid_i=0.000015, p_max=1)
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.ramp = None
 def __init__(self, pullsocket, pushsocket, data_command):
     threading.Thread.__init__(self)
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = 0
     self.pid = PID.PID(pid_p=0.2, pid_i=0.001, p_max=45)
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.temp_command = data_command
Пример #3
0
 def __init__(self, pullsocket, pushsocket, data_command, pid_params):
     threading.Thread.__init__(self)
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = 0
     self.pid = PID.PID(pid_p=pid_params[0],
                        pid_i=pid_params[1],
                        p_max=pid_params[2])
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.temp_command = data_command
 def __init__(self, pullsocket, pushsocket, value_reader):
     threading.Thread.__init__(self)
     self.value_reader = value_reader
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.values = {}
     self.values['voltage'] = 0
     self.values['current'] = 0
     self.values['power'] = 0
     self.values['setpoint'] = -1
     self.values['temperature'] = None
     self.pid = PID.PID(pid_p=0.5, pid_i=0.2, p_max=54)
     self.update_setpoint(self.values['setpoint'])
     self.quit = False
     self.ramp = None
Пример #5
0
 def __init__(self, pullsocket, pushsocket):
     threading.Thread.__init__(self)
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.pushsocket = pushsocket
     self.values = {}
     self.values['power'] = 0
     self.values['setpoint'] = -1
     self.values['temperature'] = None
     self.pid = PID.PID(pid_p=0.2, pid_i=0.05, pid_d=0, p_max=45)
     self.update_setpoint(self.values['setpoint'])
     self.quit = False
     self.ramp = None
     self.message = '**'
     self.message2 = '*'
Пример #6
0
 def __init__(self, pullsocket, pushsocket):
     threading.Thread.__init__(self)
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = 50
     self.pid = PID.PID()
     self.pid.pid_p = 1
     self.pid.pid_i = 0.00075
     self.pid.p_max = 70
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.ramp = None
     self.message = '**'
     self.message2 = '*'
 def __init__(self, datasocket, pushsocket):
     threading.Thread.__init__(self)
     self.datasocket = datasocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = 150
     self.pid = PID.PID()
     self.pid.Kp = 0.0150
     self.pid.Ki = 0.0001
     self.pid.Pmax = 1
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.ramp = None
     self.message = '*'
     self.message2 = '*'
Пример #8
0
 def __init__(self, pullsocket, pushsocket):
     threading.Thread.__init__(self)
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = -900
     self.pid = PID.PID()
     self.pid.Kp = 0.20
     self.pid.Ki = 0.05
     self.pid.Pmax = 45
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.ramp = None
     self.message = '**'
     self.message2 = '*'
 def __init__(self, pullsocket, pushsocket, value_reader):
     threading.Thread.__init__(self)
     self.value_reader = value_reader
     self.pullsocket = pullsocket
     self.pushsocket = pushsocket
     self.power = 0
     self.setpoint = -900
     self.pid = PID.PID(pid_p=0.5, pid_i=0.2, p_max=54)
     #self.pid.Kp = 0.20
     #self.pid.Ki = 0.05
     #self.pid.Pmax = 45
     self.update_setpoint(self.setpoint)
     self.quit = False
     self.temperature = None
     self.ramp = None
     self.message = '**'
     self.message2 = '*'
Пример #10
0
    def __init__(self):
        threading.Thread.__init__(self)
        channels = ['setpoint', 'emission', 'ionenergy']
        self.datasocket = DateDataPullSocket(
            'emission_tof', channels, timeouts=[99999999, 1.0, 99999999])
        self.datasocket.start()
        self.pushsocket = DataPushSocket('tof-emission-push_control',
                                         action='enqueue')
        self.pushsocket.start()
        self.livesocket = LiveSocket('tof-emission', channels)
        self.livesocket.start()
        self.filament = {}
        port = '/dev/serial/by-id/usb-TTI_CPX400_Series_PSU_C2F952E5-if00'
        self.filament['device'] = CPX.CPX400DPDriver(1,
                                                     interface='serial',
                                                     device=port)
        self.filament['voltage'] = 0
        self.filament['current'] = 0
        self.filament['idle_voltage'] = 1.7
        self.filament['device'].set_current_limit(4.0)
        self.filament['device'].output_status(True)
        self.bias = {}
        self.bias['device'] = CPX.CPX400DPDriver(2,
                                                 interface='serial',
                                                 device=port)
        self.bias['grid_voltage'] = 0
        self.bias['grid_current'] = 0
        self.bias['device'].output_status(True)
        cns = 'USB0::0x0957::0x0607::MY45000583::INSTR'
        self.bias['current_reader'] = a34410A.Agilent34410ADriver(
            interface='usbtmc', connection_string=cns)

        self.bias['current_reader'].select_measurement_function('CURRENT')
        self.pid = pid.PID(0.01, 0.1, 0, 4)
        self.looptime = 0
        self.setpoint = 0.05
        self.pid.update_setpoint(self.setpoint)
        self.running = True
        self.wanted_voltage = 0
        self.emission_current = 999
Пример #11
0
 def __init__(self):
     threading.Thread.__init__(self)
     channels = ['setpoint', 'emission', 'ionenergy']
     self.datasocket = DateDataPullSocket(
         'emission_tof', channels, timeouts=[99999999, 1.0, 99999999])
     self.datasocket.start()
     self.pushsocket = DataPushSocket('tof-emission-push_control',
                                      action='enqueue')
     self.pushsocket.start()
     self.livesocket = LiveSocket('tof-emission', channels, 1)
     self.livesocket.start()
     self.filament = {}
     port = '/dev/serial/by-id/usb-TTI_CPX400_Series_PSU_C2F952E5-if00'
     self.filament['device'] = CPX.CPX400DPDriver(1,
                                                  interface='serial',
                                                  device=port)
     self.filament['voltage'] = 0
     self.filament['current'] = 0
     self.filament['idle_voltage'] = 1.7
     self.filament['device'].set_current_limit(7)
     self.filament['device'].output_status(True)
     self.bias = {}
     port = '/dev/serial/by-id/'
     port += 'usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0'
     self.keithley_port = port
     self.bias['device'] = smu.KeithleySMU(interface='serial',
                                           device=self.keithley_port)
     self.bias['grid_voltage'] = 0
     self.bias['grid_current'] = 0
     self.bias['device'].output_state(True)
     self.pid = pid.PID(0.01, 0.1, 0, 4)
     self.looptime = 0
     self.setpoint = 0.05
     self.pid.update_setpoint(self.setpoint)
     self.running = True
     self.wanted_voltage = 0
     self.emission_current = 999