Пример #1
0
 def pump_init(self, pump_port):
     self.pser = serial.Serial(pump_port, 19200, timeout=0.1)
     print("connected to", self.pser.name)
     pumps = new_era.find_pumps(self.pser)
     self.pump = pumps[0]
     self.infuse = False
     new_era.set_diameter(self.pser, self.pump, dia_1ml)
     new_era.set_direct(self.pser, self.pump, 1)
     new_era.set_rate(self.pser, self.pump, flowrate)
Пример #2
0
 def pump_init(self, pump_port):
     self.pser = serial.Serial(pump_port, 19200, timeout=.1)
     print('connected to', self.pser.name)
     pumps = new_era.find_pumps(self.pser)
     self.pump = pumps[0]
     self.infuse = False
     new_era.set_diameter(self.pser, self.pump, dia_1ml)
     new_era.set_direct(self.pser, self.pump, 1)
     new_era.set_rate(self.pser, self.pump, flowrate)
Пример #3
0
 def habituate(self,pump):
     self.habitbtn.setChecked(1)
     self.stopbtn.setChecked(0)
     new_era.set_direct(self.ser, pump,1)
     new_era.run_stop(self.ser, pump, 100)
     print 'Withdraw:'
     new_era.set_direct(self.ser, pump, -1)
     new_era.run_stop(self.ser, pump, 100)
     self.habitbtn.setChecked(0)          
     self.stopbtn.setChecked(1)
Пример #4
0
 def habituate(self, pump):
     self.habitbtn.setChecked(1)
     self.stopbtn.setChecked(0)
     new_era.set_direct(self.ser, pump, 1)
     new_era.run_stop(self.ser, pump, 100)
     print('Withdraw:')
     new_era.set_direct(self.ser, pump, -1)
     new_era.run_stop(self.ser, pump, 100)
     self.habitbtn.setChecked(0)
     self.stopbtn.setChecked(1)