Closedown

This commit is contained in:
boccioli_m
2015-06-15 16:44:14 +02:00
parent 519ca2176a
commit 7489ee02e5
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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