From 81575707e3eaf767131a3a0915819805859b9fdf Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Fri, 5 Jun 2015 09:50:15 +0200 Subject: [PATCH] Script execution --- script/power-supply.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/script/power-supply.py b/script/power-supply.py index 38aff81..f58214a 100644 --- a/script/power-supply.py +++ b/script/power-supply.py @@ -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)