Script execution

This commit is contained in:
X11MA
2015-12-02 18:52:49 +01:00
parent 45f1df468b
commit c2cce6e978
+22 -7
View File
@@ -20,7 +20,10 @@ OTF_OPT = "X11PHS-E:OPT"
OTF_ERBK = "X11MA-PGM:CERBK"
OTF_DONE = "X11MA-PHS:ALL-DONE"
OTF_ESET = "X11MA-PHS:E_SP"
VG10 = "X11MA-EPS-VG10:SET"
VG10_SET = "X11MA-EPS-VG10:SET"
VG10_GET = "X11MA-OP-VG10:OPEN"
VG13_SET = "X11MA-EPS-VG13:SET"
VG13_GET = "X11MA-OP-VG13:OPEN"
@@ -66,18 +69,30 @@ def convert_file(input_file_name, output_file_name, field = 0, pol = 0, keithley
traceback.print_exc()
def open_vg10():
if caget ("X11MA-OP-VG10:OPEN",'i') != 1:
caput(VG10, 0)
if caget (VG10_GET,'i') != 1:
caput(VG10_SET, 0)
time.sleep(0.1)
caput(VG10, 1)
caput(VG10_SET, 1)
def close_vg10():
if caget ("X11MA-OP-VG10:OPEN",'i') == 1:
caput(VG10, 0)
if caget (VG10_GET,'i') == 1:
caput(VG10_SET, 0)
time.sleep(0.1)
caput(VG10, 1)
caput(VG10_SET, 1)
def open_vg13():
if caget (VG13_GET,'i') != 1:
caput(VG13_SET, 0)
time.sleep(0.1)
caput(VG13_SET, 1)
def close_vg13():
if caget (VG13_GET,'i') == 1:
caput(VG13_SET, 0)
time.sleep(0.1)
caput(VG13_SET, 1)
def plot_file(file, ctxt = None):
"""
"""