From 5c1d8e790180fc1d3ea4720eb6d54eaefe007261 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 4 Aug 2015 15:19:36 +0200 Subject: [PATCH] Closedown --- .../Collimator Tests/Initialise/Initialise.py | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/script/tests/tests/Collimator Tests/Initialise/Initialise.py b/script/tests/tests/Collimator Tests/Initialise/Initialise.py index a213625..8fe65f1 100644 --- a/script/tests/tests/Collimator Tests/Initialise/Initialise.py +++ b/script/tests/tests/Collimator Tests/Initialise/Initialise.py @@ -56,7 +56,7 @@ def startTest(testName, DEVICE, params): sendFeedback(testPath, testName, DEVICE, ret, success) return - scan = ManualScan(['idX'], ['idMotorPosition', 'idPotiProc', 'idBtvsProc', 'idDiff01', 'idDiff02'] ) + scan = ManualScan(['idX'], ['idMotorPosition', 'idEncoderPosition', 'idError'] ) scan.setPlotName(plotName) scan.start() #Creating channels: dimension 1 @@ -67,12 +67,10 @@ def startTest(testName, DEVICE, params): #ScalarDetector idMotorPosition #idMotorPosition = Channel(DEVICE+':IST1:2', type = 'd') idMotorPosition = Channel(DEVICE+':MOTOR.RBV', type = 'd') - #ScalarDetector idPotiProc - #idPotiProc = Channel(DEVICE+':POSA:2', type = 'd') - idPotiProc = Channel(DEVICE+':ENCODER', type = 'd') + #ScalarDetector idEncoderPosition + #idEncoderPosition = Channel(DEVICE+':POSA:2', type = 'd') + idEncoderPosition = Channel(DEVICE+':ENCODER', type = 'd') #ScalarDetector idBtvsProc - #idBtvsProc = Channel(DEVICE+':IST3:2', type = 'd') - idBtvsProc = Channel(DEVICE+':MOTOR.HLS', type = 'd') #ScalarDetector idEndSwitchL #idBtvsRaw = Channel(DEVICE+':IST3:1', type = 'd') idEndSwitchL = Channel(DEVICE+':MOTOR.LLS', type = 'd') @@ -86,53 +84,49 @@ def startTest(testName, DEVICE, params): return count = 0 - print_log(testName, DEVICE, 'Initialisation sequence') - timeout = 60000 #timeout in ms - for count in range(0, loopTimes): - print_log(testName, DEVICE, 'Initialisation #' + str(count+1) + '/' + str(loopTimes) ) - sleep( delaySeconds ) # Settling time + timeout = 90000 #timeout in ms + for count in range(1, loopTimes+1): + print_log(testName, DEVICE, 'Initialisation #' + str(count) + '/' + str(loopTimes)) idInit.put(1, timeout=None) # TODO: Set appropriate timeout timeStampStart = float(java.lang.System.currentTimeMillis()) sleep(0.1) ready = 0 interlock = idInterlock.get() timeElapsed = 0 #in ms - while (ready == 0) and timeElapsed<40000: + while (ready == 0) and timeElapsed