pump1.port = (int(raw_input('Please enter the serial port number (COMM X) of the first pump.')) - 1)
pump1.baudrate = int(4800)#int(raw_input('Please enter the baudrate of the first pump.'))
pump1.open()
#pump1.write('on \x0D')
config_dict[1] = raw_input('Please select the configuration of the first pump. (1 = heavy phase pumped out, 2 = light phase pumped out)')
time.sleep(0.15)
pump1.write('FLOW:100 \x0D') #initial flow rate; flow is in units of microliters per minute (100 = 0.1 mL/min)
spd_dict = {1:1000, 2:1000, 3:1000} #1 = pumpspeed_1, 2 = pumpspeed_2, 3 = pumpspeed_3
ser_dict = {1:pump1, 2:pump2, 3:pump3} |