Closedown
This commit is contained in:
@@ -1,6 +1,30 @@
|
||||
import os
|
||||
import traceback
|
||||
|
||||
############################PGM+ID1+ID2###################################################
|
||||
for SET_OFFSETS in range(1,2):
|
||||
if SET_OFFSETS == 1:
|
||||
print "Setting offsets",
|
||||
if RUNTYPE in ["+/-", "+" , "-"]:
|
||||
caput(OTF_MODE1,1) # circ + in ID1
|
||||
caput(OTF_MODE2,2) # circ - in ID
|
||||
elif RUNTYPE in ["LH/LV", "LH", "LV"]:
|
||||
caput(OTF_MODE1,0)
|
||||
caput(OTF_MODE2,0)
|
||||
wait_channel(OTF_DONE, 1, type = 'i')
|
||||
caput(OTF_ALPHA1, 0.0) # LH in ID1
|
||||
caput(OTF_ALPHA2, 90.0) # LV in ID2
|
||||
wait_channel(OTF_DONE, 1, type = 'i')
|
||||
else:
|
||||
raise Exception("Invalid run type: " + RUNTYPE)
|
||||
|
||||
caput(OTF_OFF1,OFFSET1)
|
||||
caput(OTF_OFF2,OFFSET2-40) #detune ID2
|
||||
wait_channel(OTF_DONE, 1, type = 'i')
|
||||
print "Offsets are set"
|
||||
else:
|
||||
import sys
|
||||
sys.exit(0)
|
||||
|
||||
file_prefix = time.strftime("%y%m%d")
|
||||
input_path = "/sls/X11MA/Data1/public/X11MA/temp/"+file_prefix+"/"
|
||||
output_path = input_path #+file_prefix+"/" #"/sls/X11MA/Data1/public/e10989/"+file_prefix+"/"
|
||||
|
||||
Reference in New Issue
Block a user