From b93daa03db50695776e4820a3cc523afc8b3d9d6 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 22 May 2015 15:22:56 +0200 Subject: [PATCH] Script execution --- script/Marco/power-supply.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/Marco/power-supply.py b/script/Marco/power-supply.py index 47eefe8..29edcdf 100644 --- a/script/Marco/power-supply.py +++ b/script/Marco/power-supply.py @@ -7,7 +7,7 @@ sleep(0.1) #TODO: Set the diplay names of positioners and detectors #ManualScan(writables, readables, start = None, end = None, steps = None, relative = False) -scan = ManualScan(['time'], ['SetVA', 'ActualVA', 'ActualIA'] , [0.0], [50.0], [10]) #????????????????????? what does this do? what is writeables? what is readables? +scan = ManualScan(['time'], ['SetVA', 'ActualVA', 'ActualIA'] , [0.0], [20.0], [10]) #????????????????????? what does this do? what is writeables? what is readables? scan.start() #Creating channels: dimension 1 @@ -60,7 +60,7 @@ SetVA.close() ActualVA.close() ActualIA.close() -readable = detector2 +readable = scan.readables(1) positions = scan.writables threshold = (min(readable) + max(readable))/2