Esempio n. 1
0
 def __init__(self, port = '/dev/ttyUSB6'):
     TemperatureController.__init__(self, port)
     """ the Temperature serial connection is on the third port at MAGIK, which is /dev/ttyUSB2 """
     self.setpoint = 0.0
     self.serial_eol = '\n'
     self.settings = {
         'sample_sensor': 'B',
         'control_sensor': 'A',
         'record': 'all',
         'units': 3,
         'control_loop': 1,
         'thermometer_calibration': 1, # applied to sample sensor
         'serial_port': '/dev/ttyUSB6'
         }
     self.sensors = {'A': "Sensor A", 'B':"Sensor B"}
     valid_record = self.sensors.copy()
     valid_record.update({'setpoint':"Setpoint", 'RH': 'RH', 'T_raw': 'T_raw', 'T_cal': 'T_cal', 'all':"Record all"})
     self.valid_settings = {
         'sample_sensor': self.sensors,
         'control_sensor': self.sensors,
         'record': valid_record,
         'units': {1: "Kelvin", 2: "Celsius", 3: "Sensor units"},
         'control_loop': {1: "1", 2: "2"},
         'thermometer_calibration': {1: "T_raw*0.97877 - 0.86433", 2: "T_raw*0.97398 - 0.58107"},
         'serial_port': dict([('/dev/ttyUSB%d' % i, 'Serial port %d' % (i+1)) for i in range(4, 16)]),
         #'serial_port': {"/dev/ttyS0": "/dev/ttyS0"}
         }
Esempio n. 2
0
 def __init__(self, port = '/dev/ttyUSB2'):
     TemperatureController.__init__(self, port)
     """ the Temperature serial connection is on the second port at AND/R, which is /dev/ttyUSB1 """
     self.settings = {
         'sample_sensor': 'I',
         'control_sensor': 'I',
         'record': 'all'
         }
     self.sensors = {'I': "Internal", 'X':"External"}
     valid_record = self.sensors.copy()
     valid_record.update({'Setpoint':"Setpoint", 'all':"Record all"})
     self.valid_settings = {
         'sample_sensor': self.sensors,
         'control_sensor': self.sensors,
         'record': valid_record,
         }
Esempio n. 3
0
 def __init__(self, port = '/dev/ttyUSB2'):
     TemperatureController.__init__(self, port)
     """ the Temperature serial connection is on the third port at MAGIK, which is /dev/ttyUSB2 """
     self.setpoint = 0.0
     self.serial_eol = '\n'
     self.settings = {
         'sample_sensor': 'A',
         'control_sensor': 'A',
         'record': 'B',
         'units': 1,
         'control_loop': 1,
         'serial_port': '/dev/ttyUSB6'
         }
     valid_record = self.sensors.copy()
     valid_record.update({'Setpoint':"Setpoint", 'all':"Record all"})
     self.valid_settings = {
         'sample_sensor': self.sensors,
         'control_sensor': self.sensors,
         'record': valid_record,
         'units': {1: "Kelvin", 2: "Celsius", 3: "Sensor units"},
         'control_loop': {1: "1", 2: "2"},
         'serial_port': dict([('/dev/ttyUSB%d' % i, 'Serial port %d' % (i+1)) for i in range(4, 16)]),
         }
Esempio n. 4
0
 def __init__(self, port = '/dev/ttyUSB7'):
     TemperatureController.__init__(self, port)
     """ the Temperature serial connection is on the third port at MAGIK, which is /dev/ttyUSB2 """
     self.setpoint = 0.0
     self.wait_time = 0.0 # give the bath a moment to reply
     self.serial_eol = '\r\n'
     self.settings = {
         'sample_sensor': 2,
         'control_sensor': 0,
         'record': 'all',
         'control_loop': 0,
         'serial_port': '/dev/ttyUSB7'            
         }
     self.sensors = {0: "Bath temp", 2:"Process temp"}
     valid_record = self.sensors.copy()
     valid_record.update({'setpoint':"Setpoint", 'all':"Record all"})
     self.valid_settings = {
         'sample_sensor': self.sensors,
         'control_sensor': self.sensors,
         'record': valid_record,
         'control_loop': {0: "0", 1: "1", 2: "2"},
         'serial_port': dict([('/dev/ttyUSB%d' % i, 'Serial port %d' % (i+1)) for i in range(4, 16)]),
         }
     self.port = self.settings['serial_port']