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