Script execution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user