Script execution

This commit is contained in:
boccioli_m
2015-06-15 14:44:30 +02:00
parent 285092814d
commit ff8c3ebaf5

View File

@@ -68,7 +68,7 @@ end = endDefault
#find position at Low end switch: it will be the starting point of the test
idInkr.put(-100.0, timeout=None) # TODO: Set appropriate timeout
start = idInkr.get()+direction
countSteps = 0
for setpoint1 in range(0, 3):
sleep( 2 ) # Settling time
#RegionPositioner idInkr
@@ -112,7 +112,8 @@ for setpoint1 in range(0, 3):
b = detector6
count = setpoint1
idDiff01 = a-b
scan.append ([count], [readback2], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, idDiff02, idDiff01])
countSteps = countSteps + 1
scan.append ([countSteps], [readback2], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, idDiff02, idDiff01])
if endH>0.0 :
#invert direction and swap start with end of translation
end = startDefault