Script execution

This commit is contained in:
boccioli_m
2015-06-05 09:50:15 +02:00
parent d037dbf3a6
commit 81575707e3
+6 -4
View File
@@ -1,13 +1,12 @@
#Pre-actions
caput('PO2DV-NCS-VHQ1:Set-RampA', '10')
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])
scan.start()
#Creating channels: dimension 1
#Ramp rate
SetRamp = Channel('PO2DV-NCS-VHQ1:Set-RampA', type = 'd')
SetRamp = Channel('pw84:ai', type = 'd')
#LinearPositioner SetVA
SetVA = Channel('PO2DV-NCS-VHQ1:Set-VA', type = 'd')
SetVA = Channel('pw84:ai', type = 'd')
@@ -19,6 +18,9 @@ ActualVA = Channel('pw84:ai', type = 'd')
ActualIA = Channel('PO2DV-NCS-VHQ1:Actual-IA', type = 'd')
ActualIA = Channel('pw84:ai', type = 'd')
#Init
SetRamp.put(10.0, timeout=None)
#set voltage to 0
print 'Ramping down power supply to 0V'
SetVA.put(0.0, timeout=None)