Closedown

This commit is contained in:
X11MA
2017-05-14 05:14:40 +02:00
parent ffafb111f2
commit 39b755d5a3
7 changed files with 55 additions and 35 deletions
+9 -9
View File
@@ -74,7 +74,7 @@ number_of_scans = 1
###############################################################################
caput ("X11PHS-E:OPT","PGM+ID1")
caput(OTF_OFF2,-50) #detune ID2
#caput(OTF_OFF2,-50) #detune ID2
wait_channel(OTF_DONE, 1, type = 'i')
if RUNTYPE in ["+/-", "+", "-"]:
@@ -102,13 +102,13 @@ elif RUNTYPE in ["LH/LV", "LH", "LV"]:
else:
raise Exception("Invalid run type: " + RUNTYPE)
open_vg10()
time.sleep(0.5)
open_vg11()
time.sleep(0.5)
open_vg12()
time.sleep(0.5)
open_vg13()
#open_vg10()
#time.sleep(0.5)
#open_vg11()
#time.sleep(0.5)
#open_vg12()
#time.sleep(0.5)
#open_vg13()
###############################################################################
#Main scan loop
@@ -173,7 +173,7 @@ for scan_no in range(number_of_scans):
fid = fid + 1
caput(OTF_ESET, E1)
close_vg13()
#close_vg13()
print "Finished Energy scan"
+9 -9
View File
@@ -74,7 +74,7 @@ number_of_scans = 1
###############################################################################
caput ("X11PHS-E:OPT","PGM+ID2")
caput(OTF_OFF1,-50) #detune ID1
#caput(OTF_OFF1,-50) #detune ID1
wait_channel(OTF_DONE, 1, type = 'i')
if RUNTYPE in ["+/-", "+", "-"]:
@@ -99,13 +99,13 @@ elif RUNTYPE in ["LH/LV", "LH", "LV"]:
else:
raise Exception("Invalid run type: " + RUNTYPE)
open_vg10()
time.sleep(0.5)
open_vg11()
time.sleep(0.5)
open_vg12()
time.sleep(0.5)
open_vg13()
#open_vg10()
#time.sleep(0.5)
#open_vg11()
#time.sleep(0.5)
#open_vg12()
#time.sleep(0.5)
#open_vg13()
###############################################################################
#Main scan loop
@@ -170,7 +170,7 @@ for scan_no in range(number_of_scans):
fid = fid + 1
caput(OTF_ESET, E1)
close_vg13()
#close_vg13()
print "Finished Energy scan"
+2 -2
View File
@@ -22,8 +22,8 @@ RANGES = [(B1, B2, -BSTEP),(B2,B1,BSTEP)]
# Here polarization and offsets are set
caput ("X11PHS-E:OPT","PGM+ID1")
caput(OTF_OFF1,OFFSET1) #detune ID1
caput(OTF_OFF2,OFFSET2)
#caput(OTF_OFF2,-50) #detune ID2
caput(OTF_OFF1,OFFSET1)
wait_channel(OTF_DONE, 1, type = 'i')
if MODE is 1 or 2:
+1 -1
View File
@@ -22,7 +22,7 @@ RANGES = [(B1, B2, -BSTEP),(B2,B1,BSTEP)]
# Here polarization and offsets are set
caput ("X11PHS-E:OPT","PGM+ID2")
caput(OTF_OFF1,OFFSET1) #detune ID1
#caput(OTF_OFF1,-50) #detune ID1
caput(OTF_OFF2,OFFSET2)
wait_channel(OTF_DONE, 1, type = 'i')