From 11c3226a60002e25ad5203aac137530ffa344352 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Wed, 3 Jun 2015 15:26:01 +0200 Subject: [PATCH] Script execution --- script/power-supply.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/script/power-supply.py b/script/power-supply.py index aca8270..ac3880e 100644 --- a/script/power-supply.py +++ b/script/power-supply.py @@ -1,9 +1,5 @@ #Pre-actions -PVSET = 'PO2DV-NCS-VHQ1:Set-RampA' -PVGETACTUALVA = 'PO2DV-NCS-VHQ1:Actual-VA' -PVGETACTUALIA = 'PO2DV-NCS-VHQ1:Actual-IA' - -caput(PVSET, '10') +caput('PO2DV-NCS-VHQ1:Set-RampA', '10') sleep(0.1) #TODO: Set the diplay names of positioners and detectors @@ -13,12 +9,12 @@ scan.start() #Creating channels: dimension 1 #LinearPositioner SetVA -SetVA = Channel(PVSET, type = 'd') +SetVA = Channel('PO2DV-NCS-VHQ1:Set-VA', type = 'd') #Timestamp time #ScalarDetector ActualVA -ActualVA = Channel(PVGETACTUALVA, type = 'd') +ActualVA = Channel('PO2DV-NCS-VHQ1:Actual-VA', type = 'd') #ScalarDetector ActualIA -ActualIA = Channel(PVGETACTUALIA, type = 'd') +ActualIA = Channel('PO2DV-NCS-VHQ1:Actual-IA', type = 'd') #set voltage to 0 print 'Ramping down power supply to 0V'