Script execution

This commit is contained in:
gac-x11ma
2018-09-04 17:50:23 +02:00
parent b7c6f4f7f4
commit 84ed0b4496
+5 -4
View File
@@ -1,6 +1,6 @@
file_prefix = time.strftime("%Y%m%d")
# CHANGE THE PATH IN THE OTH
input_path = " /sls/X11MA/data/X11MA/slsbl/x11ma/e17208/Data1/" + file_prefix +"/"
input_path = " /sls/X11MA/data/X11MA/slsbl/x11ma/e17208/Data1/20180904/"
output_path = input_path
@@ -98,7 +98,7 @@ polswitch = 1
fid = get_next_fid(input_path, "o" + file_prefix)
print "File ID:" , fid
###############################################################################
#Prepare scan
###############################################################################
@@ -166,6 +166,7 @@ for scan_no in range(number_of_scans):
caput(OTF_TIME, TIME)
caput(OTF_FTS,file_prefix)
caput(OTF_FID,fid)
print "Setting FID = " , fid
time.sleep(2.0)
caput(OTF_ESET, E1)
wait_channel(OTF_DONE, 1, type = 'i')
@@ -189,10 +190,10 @@ for scan_no in range(number_of_scans):
#Convert file
output_file = output_path + "os" + file_prefix + "_" + suffix + ".dat"
print("Converting data file: " + output_file);
#print("Converting data file: " + output_file);
#convert_file(input_file, output_file)
#plot_file(output_file, file_prefix+"_" + suffix) #"Scan " + str(scan_no+1))
#print "Finished scan " + str(scan_no+1) + " out of " + str(number_of_scans) + "with polarisation: " + pol_str
print "Finished scan " + str(scan_no+1) + " out of " + str(number_of_scans) + "with polarisation: " + pol_str
if scan_no % 2 == 0: # switch on steps 2N
if RUNTYPE in ["+/-", "LH/LV"]: