Closedown

This commit is contained in:
boccioli_m
2015-05-29 14:53:19 +02:00
parent 446005e788
commit 046d6be4b2
+3 -5
View File
@@ -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?