Script execution

This commit is contained in:
boccioli_m
2015-06-18 07:48:58 +02:00
parent 4ae4e296b1
commit 022b495524

View File

@@ -119,14 +119,14 @@ for setpoint1 in range(0, loopTimes):
idDiff01 = a-b
countSteps = countSteps + 1
scan.append ([countSteps], [countSteps], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, idDiff02, idDiff01])
if endH>0.0 or readback2 >= end :
if endH>0.0 or (direction > 0 and readback2 >= end ):
#invert direction and swap start with end of translation
end = startDefault
start = readback2 - direction
direction = -1.0
print 'End of span, changing direction to ' + str(direction)
break
if endL>0.0 or readback2 <= start:
if endL>0.0 or ( direction < 0 and readback2 <= start ):
#invert direction and swap start with end of translation
end = endDefault
start = readback2 - direction