From 046d6be4b2d1626521481352e50e6760d48f83af Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 29 May 2015 14:53:19 +0200 Subject: [PATCH] Closedown --- script/power-supply.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/script/power-supply.py b/script/power-supply.py index f4a0111..52299e4 100644 --- a/script/power-supply.py +++ b/script/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], [20.0], [10]) #????????????????????? what does this do? what is writeables? what is readables? +scan = ManualScan(['time'], ['SetVA', 'ActualVA', 'ActualIA'] , [0.0], [20.0], [10]) scan.start() #Creating channels: dimension 1 @@ -33,7 +33,7 @@ for setpoint1 in frange(0.0, 120.0, 1.0, True): #Dimension 1 #LinearPositioner SetVA print 'Ramping up power supply' -for setpoint1 in frange(0.0, 20.0, 10.0, True): #?????????????????? What is the relationship between this FOR loop and the ManualScan? +for setpoint1 in frange(0.0, 20.0, 10.0, True): if setpoint1 > 50.0 or setpoint1 < 0.0: break SetVA.put(setpoint1, timeout=None) # TODO: Set appropriate timeout @@ -50,7 +50,7 @@ for setpoint1 in frange(0.0, 20.0, 10.0, True): #?????????????????? What is the #scan.append ([setpoint1], [readback1], [detector1, detector2]) #append(setpoints, positions, values) - scan.append ([detector1], [detector1], [readback1, detector2, detector3]) #?????????????????????? what is setpoint? is position = X-axis? + scan.append ([detector1], [detector1], [readback1, detector2, detector3]) sleep( 0.1 ) # Settling time #reset output to 0V @@ -74,5 +74,3 @@ print "Peak y: " + str(map(lambda x:readable[x], peaks)) scan.end() - -#??????????????????????????? Device modeling: how can I modelise a Power Supply, for example?