From 513cfd8a6e92bbda145a9007296dd1e6fb3afa10 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 18 Jun 2015 08:10:29 +0200 Subject: [PATCH] Script execution --- .../tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py b/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py index 26edd8a..389e07d 100644 --- a/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py +++ b/script/tests/tests/Collimator Tests/Motor Test 2/Motor Test 2.py @@ -74,7 +74,7 @@ for setpoint1 in range(0, loopTimes): count = count + 1 sleep( 2 ) # Settling time #RegionPositioner idInkr - for setpoint2 in frange(start, end, direction, true): + for setpoint2 in frange(start, end, direction): readback1 = setpoint1 ################### beginning of C ################## idInkr = setpoint2 # idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout @@ -118,6 +118,7 @@ for setpoint1 in range(0, loopTimes): b = detector6 idDiff01 = a-b countSteps = countSteps + 1 + print str(setpoint2) scan.append ([countSteps], [countSteps], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, idDiff02, idDiff01]) if endH>0.0 or (direction > 0.0 and setpoint2 >= end-1 ): #invert direction and swap start with end of translation