Script execution

This commit is contained in:
X11MA
2017-02-09 12:08:02 +01:00
parent 19783df63a
commit 0b94598ff4
-21
View File
@@ -307,27 +307,6 @@ for scan_no in range(number_of_scans):
otf_start.write(0)
finally:
stopPlot()
time.sleep(5.0)
#Convert file
output_file = output_path + "os" + file_prefix + "_" + suffix + ".dat"
print("Converting data file: " + output_file);
convert_file(input_file, output_file, pol_str)
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)
if RUNTYPE in ["+/-", "LH/LV"]:
if polswitch == 1:
switchpol(2, RUNTYPE) # tune ID2 --> polarization: C- or LV
polswitch = 0
else:
polswitch = 1
switchpol(1, RUNTYPE) # tune ID1 --> polarization: C+ or LH
else:
print "running in one polarization mode, no switching"
time.sleep(3.0)
time.sleep(5.0)
#TODO: wait for file instead of sleep