Script execution

This commit is contained in:
boccioli_m
2015-05-20 15:33:54 +02:00
parent 5cd5ff8dd2
commit 74cc94d4fe

View File

@@ -3,8 +3,6 @@
#Pre-actions
caput('PO2DV-NCS-VHQ1:Set-RampA', '25')
sleep(1.0)
caput('PO2DV-NCS-VHQ1:Set-VA', '0')
sleep(4.0)
#TODO: Set the diplay names of positioners and detectors
scan = ManualScan(['SetVA'], ['time', 'ActualVA'] , [0.0], [50.0], [50])
@@ -17,6 +15,17 @@ SetVA = Channel('PO2DV-NCS-VHQ1:Set-VA', type = 'd')
#ScalarDetector ActualVA
ActualVA = Channel('PO2DV-NCS-VHQ1:Actual-VA', type = 'd')
#set voltage to 0
caput('PO2DV-NCS-VHQ1:Set-VA', '0')
#wait for voltage to be 0
for setpoint1 in frange(0.0, 50.0, 1.0, True):
detector2 = ActualVA.get()
if detector2 <= 0.0:
break
sleep(0.5)
#Dimension 1
#LinearPositioner SetVA
for setpoint1 in frange(0.0, 50.0, 1.0, True):