Script execution
This commit is contained in:
+6
-16
@@ -18,7 +18,7 @@ Preconditions - RF station is running
|
||||
SECTION = "SINSB01"
|
||||
|
||||
# for 100 Hz and P2P-count = 100 this can be at least 1.1 seconds
|
||||
latency = 1
|
||||
latency = 0.1
|
||||
#################################################################
|
||||
|
||||
|
||||
@@ -135,17 +135,6 @@ def after(rec):
|
||||
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", after_read=after, 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)
|
||||
|
||||
#################################################################################
|
||||
# close all PVs
|
||||
cv_rf_phase.close()
|
||||
@@ -279,7 +268,7 @@ set_attribute(path, "Saturation Power", satpower)
|
||||
#################################################################################
|
||||
# New overview plot of the results
|
||||
|
||||
[pya]=plot([None,],["summary_amplt_jit"], title="Results Overview AMPLITUDE jitter")
|
||||
[pya]=plot([None,],["summary_amplt_jit"], title="Results Overview Jitter")
|
||||
|
||||
#Y error plot
|
||||
pya.setStyle(py.Style.ErrorY)
|
||||
@@ -307,8 +296,7 @@ m=pya.addMarker(5.0, pya.AxisId.X, "VSUM",pya.background)
|
||||
m.setLabelPaint(Color.BLACK)
|
||||
|
||||
|
||||
|
||||
[pyp]=plot([None,],["summary_phase_jit"], title="Results Overview PHASE jitter")
|
||||
[pyp]=plot([None,],["summary_phase_jit"], title="Results Overview Jitter")
|
||||
|
||||
#Y error plot
|
||||
pyp.setStyle(py.Style.ErrorY)
|
||||
@@ -365,7 +353,9 @@ msg = msg + "\n\nData file: " + get_context().path
|
||||
print msg
|
||||
|
||||
# save the entry in the logbook
|
||||
plot_files = get_plot_snapshots("Jitter Scan")
|
||||
plot_files1 = get_plot_snapshots("Jitter Scan")
|
||||
plot_files2 = get_plot_snapshots("Results Overview Jitter")
|
||||
plot_files = plot_files1 + plot_files2
|
||||
time.sleep(1.0)
|
||||
elogllrf("Jitter Scan (HVPS="+str(hvps)[:6]+"V / "+str(rfrate)[:6]+" Hz)", msg,"Measurement", "RF Stability", SECTION, plot_files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user