From ff8c3ebaf5eb848d62167983ed19c25ef5d5d262 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Mon, 15 Jun 2015 14:44:30 +0200 Subject: [PATCH] Script execution --- script/Motor Test 3.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/Motor Test 3.py b/script/Motor Test 3.py index 47e45fc..b819aae 100644 --- a/script/Motor Test 3.py +++ b/script/Motor Test 3.py @@ -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