Script execution

This commit is contained in:
boccioli_m
2015-06-03 15:24:24 +02:00
parent a4baadf2e6
commit d1e4649ff3

View File

@@ -1,5 +1,9 @@
#Pre-actions
caput('PO2DV-NCS-VHQ1:Set-RampA', '10')
PVSET = 'PO2DV-NCS-VHQ1:Set-RampA'
PVGETACTUALVA = 'PO2DV-NCS-VHQ1:Actual-VA'
PVGETACTUALIA = 'PO2DV-NCS-VHQ1:Actual-IA'
caput(PVSET, '10')
sleep(0.1)
#TODO: Set the diplay names of positioners and detectors
@@ -9,12 +13,12 @@ scan.start()
#Creating channels: dimension 1
#LinearPositioner SetVA
SetVA = Channel('PO2DV-NCS-VHQ1:Set-VA', type = 'd')
SetVA = Channel(PVSET, type = 'd')
#Timestamp time
#ScalarDetector ActualVA
ActualVA = Channel('PO2DV-NCS-VHQ1:Actual-VA', type = 'd')
ActualVA = Channel(PVGETACTUALVA, type = 'd')
#ScalarDetector ActualIA
ActualIA = Channel('PO2DV-NCS-VHQ1:Actual-IA', type = 'd')
ActualIA = Channel(PVGETACTUALIA, type = 'd')
#set voltage to 0
print 'Ramping down power supply to 0V'