Closedown

This commit is contained in:
ozkan_c
2016-12-16 14:05:46 +01:00
parent 2a6ff2f08c
commit cdbe2fa3de

View File

@@ -1,42 +0,0 @@
polarizer = Channel("SLGJG-LMRM-M031:MOT", alias="POLR")
ict1 = Channel("SINEG01-DICT215:B1_CHARGE", alias="ICT1")
ict2 = Channel("S10DI01-DICT025:B1_CHARGE", alias="ICT2")
ict3 = Channel("SARMA01-DICT090:B1_CHARGE", alias="ICT3")
ict4 = Channel("SARBD01-DICT030:B1_CHARGE", alias="ICT4")
bpm1 = Channel("SINEG01-DBPM340:Q1", 'd', alias = "BPM1")
bpm2 = Channel("S10CB02-DBPM420:Q1", 'd', alias = "BPM2")
bpm3 = Channel("SARMA01-DBPM040:Q1", 'd', alias = "BPM3")
bpm4 = Channel("SARBD01-DBPM040:Q1", 'd', alias = "BPM4")
start_polarizer = polarizer.read()
#laser_on() #Check local.py for util defiunitions
try:
r = lscan (polarizer, [ict1, ict2, ict3, ict4, bpm1, bpm2, bpm3, bpm4], 4.0, 48.0, 0.5)
finally:
polarizer.write(start_polarizer)
ict1.close()
ict2.close()
ict3.close()
ict4.close()
polarizer.close()
bpm.close()
#laser_off()
gsa_log_msg = "Data file: " + get_context().path
gsa_log_msg = gsa_log_msg + "\n\n" + r.print()
elog("Charge Scan", gsa_log_msg , get_plot_snapshots())
#Trigger CPython plotting script
def do_plot(script_data_file):
script_file = "/afs/psi.ch/intranet/SF/Diagnostics/data_read/WCM_ICT_BPM_plot.py"
python = "/opt/gfa/python-3.5/latest/bin/python"
exec_cpython(script_file, args = [script_data_file], method_name="plotAll", python_name = python)
def start_plot(script_data_file):
fork((do_plot,(script_data_file,)))
#start_plot(get_context().path)