Script execution

This commit is contained in:
X11MA
2015-12-03 04:07:05 +01:00
parent ba00187773
commit f614a4b331
+8 -5
View File
@@ -59,6 +59,7 @@ else:
if RUNTYPE == "-":
switchpol(2) # tune ID2 --> polarization: C-
polswitch = 0
else:
switchpol(1) # tune ID1 --> polarization: C+
time.sleep(1.0)
@@ -97,11 +98,13 @@ for scan_no in range(number_of_scans):
convert_file(input_file, output_file, pol_str)
plot_file(output_file, file_prefix+"_" + suffix) #"Scan " + str(scan_no+1))
if polswitch == 1:
switchpol(2) # tune ID2 --> polarization:C-
polswitch = 0
else:
polswitch = 1
if RUNTYPE == "+/-":
if polswitch == 1:
switchpol(2) # tune ID2 --> polarization:C-
polswitch = 0
else:
polswitch = 1
switchpol(1) # tune ID1 --> polarization:C+
time.sleep(3.0)
fid = fid + 1