pipettenblock eingefügt
This commit is contained in:
parent
5c3d35cbfe
commit
d319f348b4
@ -46,10 +46,10 @@ class LabPip(LabPis):
|
||||
self.e=self.top
|
||||
return self.sendE()
|
||||
|
||||
def get_tip(self,x,y,z):
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.z = z
|
||||
def get_tip(self,l):
|
||||
self.x = l[0]
|
||||
self.y = l[1]
|
||||
self.z = l[2]
|
||||
return self.go_top() + self.sendXYZ()
|
||||
|
||||
def up(self):
|
||||
@ -60,21 +60,27 @@ class LabPip(LabPis):
|
||||
class LabPipBlock():
|
||||
""" Pipettenblock description"""
|
||||
|
||||
def __init__(self,xoffset,yoffset,anz,rows,deltax,deltay):
|
||||
def __init__(self,xoffset,yoffset,z,anz,rows,deltax,deltay):
|
||||
self.xoffset = xoffset
|
||||
self.yoffset = yoffset
|
||||
self.anz = anz
|
||||
self.rows = rows
|
||||
self.deltax = deltax
|
||||
self.deltay = deltay
|
||||
self.z = z
|
||||
self.akt = 0
|
||||
|
||||
def next(self):
|
||||
if self.akt == self.anz:
|
||||
return f'No more tips !!'
|
||||
else :
|
||||
pass
|
||||
|
||||
r = self.anz / self.rows
|
||||
m = self.akt % r # column
|
||||
c = self.akt // r # row
|
||||
self.akt += 1
|
||||
x = self.xoffset - (m * self.deltax)
|
||||
y = self.yoffset - (c * self.deltax)
|
||||
return x,y,self.z
|
||||
|
||||
|
||||
|
||||
@ -83,10 +89,15 @@ v1 = LabPis(200,200,100,21)
|
||||
a1 = LabPis(100,100,100,1)
|
||||
p1 = LabPis()
|
||||
|
||||
lpb = LabPipBlock(200,200,100,20,5,8,10)
|
||||
|
||||
#for n in range(22):
|
||||
# print (lpb.next())
|
||||
|
||||
pip = LabPip(vol=500)
|
||||
pip.fe =5000
|
||||
#print(pip)
|
||||
|
||||
print(pip.get_tip(lpb.next()))
|
||||
#print(pip.up())
|
||||
print(pip)
|
||||
print(pip.get_tip(150,150,50))
|
||||
print(pip.up())
|
||||
print(pip)
|
||||
Loading…
Reference in New Issue
Block a user