From da2b101d08bf7302082073eacf980ae819f5e4bd Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Mon, 22 Jun 2015 10:27:58 +0200 Subject: [PATCH] Script execution --- .../Collimator Tests/Motor Test 2/Motor Test 2.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 b9cb131..3c48ad6 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 @@ -68,15 +68,18 @@ except: idLimitH.put(999999.9, timeout=None) idLimitL.put(-999999.9, timeout=None) -#Dimension 1 + +#get parameters from the calling interface +middle = parameters["midPoint"] +loopTimes = parameters["repeatTimes"] +span = parameters["spanFromMidPoint"] + +print 'middle ' + middle direction = 1.0 -middle = 40.0 -span = 10.0 startDefault = middle - span endDefault = middle + span end = endDefault+1 #find position: it will be the middle point of the test -loopTimes = 2 idInkr.put(middle, timeout=None) # TODO: Set appropriate timeout start = idInkr.get()+direction countSteps = 0