Script execution

This commit is contained in:
2016-10-27 08:42:23 +02:00
parent 13bdbe3720
commit e213152719
+22 -9
View File
@@ -113,19 +113,32 @@ amplt_m5 = 0.95 * amplt_sat
amplt_m10 = 0.9 * amplt_sat
amplt_step = 0.049999 * amplt_sat
# adjust plot ranges for the color bar to be always the same
def after(rec):
if rec.index==1:
for p in get_plots("Jitter Scan"):
if i % 2 == 0:
p.setScale(0.0, a_lim)
else :
p.setScale(0.0, p_lim)
i += 1
scan_result = ascan((cv_rf_amplt, cv_rf_phase), (mv_ref_jit_amplt,mv_ref_jit_phase,mv_iqm_jit_amplt,mv_iqm_jit_phase,mv_pre_jit_amplt,mv_pre_jit_phase,mv_kly_jit_amplt,mv_kly_jit_phase,mv_vsum_jit_amplt,mv_vsum_jit_phase), ( amplt_m10, -170.0), (amplt_sat, 180.0), (amplt_step, 10.0) , latency=latency, title="Jitter Scan", zigzag=False)
# adjust plot ranges for the color bar to be always the same
i=0
for p in get_plots("Jitter Scan"):
if i % 2 == 0:
p.setScale(0.0, a_lim)
else :
p.setScale(0.0, p_lim)
i += 1
time.sleep(1.0)
#i=0
#for p in get_plots("Jitter Scan"):
# if i % 2 == 0:
# p.setScale(0.0, a_lim)
# else :
# p.setScale(0.0, p_lim)
# i += 1
#
#time.sleep(1.0)
#################################################################################
# close all PVs