Closedown
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#Script imported from: Motor Test 3.xml
|
||||
#Script Motor Test 2
|
||||
#Go to absolute position A, then move +B steps, then -2B steps, then +2Bsteps (ie oscillate round centre position, logging after each movement); repeat N times
|
||||
|
||||
import traceback
|
||||
|
||||
#by default, failed
|
||||
|
||||
@@ -72,13 +72,13 @@ idInkr.put(-100.0, timeout=None) # TODO: Set appropriate timeout
|
||||
start = idInkr.get()+direction
|
||||
countSteps = 0
|
||||
count = 0
|
||||
for setpoint1 in range(0, 2):
|
||||
for setpoint1 in range(0, 20):
|
||||
count = count + 1
|
||||
sleep( 2 ) # Settling time
|
||||
#RegionPositioner idInkr
|
||||
for setpoint2 in frange(start, end, direction):
|
||||
readback1 = setpoint1
|
||||
sleep( 0.1 ) # Settling time
|
||||
sleep( 0.2 ) # Settling time
|
||||
idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
|
||||
readback2 = idInkr.get()
|
||||
if abs(readback2 - setpoint2) > 1 : # TODO: Check accuracy
|
||||
|
||||
Reference in New Issue
Block a user