From 54a4633a8508a1aec0904bfaeb5eb87384944cce Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 25 Jun 2015 11:10:48 +0200 Subject: [PATCH] Script execution --- .../tests/Collimator Tests/Motor Test 1/Motor Test 1.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py b/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py index c826b6a..f14d7ef 100644 --- a/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py +++ b/script/tests/tests/Collimator Tests/Motor Test 1/Motor Test 1.py @@ -6,14 +6,15 @@ import traceback #by default, failed ret = 'Test failed' status = False -sleep(0.200) +DEVICE = device +params = parameters #DEVICE = 'PO2DV-NCS-LS' #get parameters from the calling interface try: print "Running test Motor Test 1 with the following parameters:" - print parameters - loopTimes = int(parameters["repeatTimes"]["value"]) - delaySeconds = int(parameters["delayS"]["value"]) + print params + loopTimes = int(params["repeatTimes"]["value"]) + delaySeconds = int(params["delayS"]["value"]) except: print "Could not retrieve testing parameters: ", sys.exc_info()[0] ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()