def move_left(self): move=int(self.ystep.value()/rc.ystepsize) print(("moving left %i steps"%move)) rep=self.parent.instr.rate(2,move) if rep>=9: alert(self,'Not able to go %i steps Y-dir'%move,'Motor failure',loud=1)
def move_down(self): move=int(self.xstep.value()/rc.xstepsize) print(("moving down %i steps"%move)) rep=self.parent.instr.rate(1,-move) if rep>=9: alert(self,'Not able to go %i steps -X-dir'%move,'Motor failure',loud=1)