Läuft OK
This commit is contained in:
parent
250fa6ee23
commit
d0ec6fe202
@ -294,6 +294,7 @@ ttk.Label(fra2,textvariable=akttip).grid(row=0,column=4)
|
|||||||
fra3 = ttk.LabelFrame(downrightframe2,text=' Vessels')
|
fra3 = ttk.LabelFrame(downrightframe2,text=' Vessels')
|
||||||
fra3.grid(row=2,column=0,sticky='nw')
|
fra3.grid(row=2,column=0,sticky='nw')
|
||||||
vess = tk.StringVar()
|
vess = tk.StringVar()
|
||||||
|
aktvess = tk.StringVar()
|
||||||
def do_vessels(*args):
|
def do_vessels(*args):
|
||||||
global reakt
|
global reakt
|
||||||
reakt = LabReactBlock(vess_config[vess.get()]['rxoffset'],
|
reakt = LabReactBlock(vess_config[vess.get()]['rxoffset'],
|
||||||
@ -307,6 +308,8 @@ def do_vessels(*args):
|
|||||||
)
|
)
|
||||||
vessopt = ttk.OptionMenu(fra3,vess,vessels[0],*vessels,command= do_vessels)
|
vessopt = ttk.OptionMenu(fra3,vess,vessels[0],*vessels,command= do_vessels)
|
||||||
vessopt.grid(row=0,column=0)
|
vessopt.grid(row=0,column=0)
|
||||||
|
ttk.Label(fra3,text='Vessel Nr').grid(row=0,column=1)
|
||||||
|
ttk.Label(fra3,textvariable=aktvess).grid(row=0,column=2)
|
||||||
|
|
||||||
do_vessels()
|
do_vessels()
|
||||||
|
|
||||||
@ -375,13 +378,13 @@ def load():
|
|||||||
b13.config(command=load)
|
b13.config(command=load)
|
||||||
|
|
||||||
def dispense():
|
def dispense():
|
||||||
v = reacvol.get()
|
v = float(reacvol.get())
|
||||||
if pip.dispenseVol(v):
|
if pip.dispenseVol(v):
|
||||||
command.append(pip.sendE().encode('utf-8'))
|
command.append(pip.sendE().encode('utf-8'))
|
||||||
else :
|
else :
|
||||||
takeChem()
|
takeChem()
|
||||||
upTip()
|
upTip()
|
||||||
command.append(pip.get_tip(react.same()).encode('utf-8'))
|
command.append(pip.get_tip(reakt.same()).encode('utf-8'))
|
||||||
downTip()
|
downTip()
|
||||||
if pip.dispenseVol(v):
|
if pip.dispenseVol(v):
|
||||||
command.append(pip.sendE().encode('utf-8'))
|
command.append(pip.sendE().encode('utf-8'))
|
||||||
@ -407,7 +410,7 @@ b14.config(command=takeChem)
|
|||||||
def nextVessel():
|
def nextVessel():
|
||||||
upTip()
|
upTip()
|
||||||
command.append(pip.get_tip(reakt.next()).encode('utf-8'))
|
command.append(pip.get_tip(reakt.next()).encode('utf-8'))
|
||||||
reakt.set(reakt.akt)
|
aktvess.set(reakt.akt)
|
||||||
downTip()
|
downTip()
|
||||||
b15.config(command=nextVessel)
|
b15.config(command=nextVessel)
|
||||||
|
|
||||||
@ -426,7 +429,7 @@ def loadSerie():
|
|||||||
for i in range(p,q):
|
for i in range(p,q):
|
||||||
print(i)
|
print(i)
|
||||||
reakt.akt = i
|
reakt.akt = i
|
||||||
reakt.set(reakt.akt)
|
aktvess.set(reakt.akt)
|
||||||
upTip()
|
upTip()
|
||||||
command.append(pip.get_tip(reakt.same()).encode('utf-8'))
|
command.append(pip.get_tip(reakt.same()).encode('utf-8'))
|
||||||
downTip()
|
downTip()
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
[Water]
|
[Water]
|
||||||
x = 50
|
x = 200
|
||||||
y = 10
|
y = 50
|
||||||
z = 10
|
z = 70
|
||||||
volume = 100
|
volume = 100
|
||||||
z/ml = 0.1
|
z/ml = 0.5
|
||||||
reakvolume = 100
|
reakvolume = 100
|
||||||
|
|
||||||
[Propanol]
|
[Propanol]
|
||||||
|
|||||||
@ -165,20 +165,19 @@ class ChemLoc():
|
|||||||
change of surface per ml """
|
change of surface per ml """
|
||||||
|
|
||||||
def __init__(self,xloc,yloc,zloc,vol,deltaz,chemvol):
|
def __init__(self,xloc,yloc,zloc,vol,deltaz,chemvol):
|
||||||
self.xloc = xloc
|
self.xloc = float(xloc)
|
||||||
self.yloc = yloc
|
self.yloc = float(yloc)
|
||||||
self.zloc = zloc
|
self.zloc = float(zloc)
|
||||||
self.vol = vol
|
self.vol = float(vol)
|
||||||
self.deltaz = deltaz
|
self.deltaz = float(deltaz)
|
||||||
#self.tauch = tauch
|
self.chemvol = float(chemvol)
|
||||||
self.chemvol = chemvol
|
|
||||||
|
|
||||||
def getXY(self):
|
def getXY(self):
|
||||||
return self.xloc,self.yloc
|
return self.xloc,self.yloc
|
||||||
|
|
||||||
def load(self,ml):
|
def load(self,ml):
|
||||||
if self.vol > ml:
|
if self.vol > ml:
|
||||||
z = self.zloc + self.tauch;
|
z = self.zloc
|
||||||
self.zloc = self.zloc + self.deltaz*ml
|
self.zloc = self.zloc + self.deltaz*ml
|
||||||
self.vol = self.vol - ml
|
self.vol = self.vol - ml
|
||||||
return z
|
return z
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[1000]
|
[1000]
|
||||||
xoffset = 15.5
|
xoffset = 15.5
|
||||||
yoffset = 5.5
|
yoffset = 5
|
||||||
rows = 5
|
rows = 5
|
||||||
cols = 10
|
cols = 10
|
||||||
xspace = 12.0
|
xspace = 12.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user