Script execution

This commit is contained in:
2016-11-07 08:21:25 +01:00
parent a3269a2fcf
commit 4aa0537c9c

View File

@@ -4,14 +4,13 @@ Author: KR84
Copyright PSI LLRF, 2016
Purpose Record RF system jitters vs. average gate length and store / archive data
Preconditions - AVG gate for REFxx start = 0.1us, stop = 0.105us
- based on the current RF rep rate and pulse-to-pulse count set latency correctly
Preconditions - LLRF receives triggers. All changed gate settings are RESTORED after the scan.
"""
#################################################################
# Parameter SECTION, change it to your RF station before run
SECTION = "SINDI01"
SECTION = "S10CB01"
REFxx = "REF10"
#################################################################
@@ -62,8 +61,11 @@ rfrate = auxv_rfrate.read()
latency = 1.5 * p2pcount / rfrate
# set start gate:
# set start/stop gate for initial point:
auxv_gate_start.write(0.15)
cv_gate_stop.write(0.155)
time.sleep(latency)
scan_result = lscan(cv_gate_stop, (mv_ref_jit_amplt,mv_ref_jit_phase,), 0.155, 8.005, 0.05 , latency=latency, title="Jitter Scan vs. avg gate length")
@@ -105,7 +107,7 @@ set_attribute(path, "P2PCOUNT", p2pcount)
#################################################################################
# ELOG
msg = "RF rep rate = " + str(rfrate)[:6] + "Hz)"
msg = "RF rep rate = " + str(rfrate)[:6] + "Hz"
msg = msg + "\nP2PCOUNT = " + str(p2pcount)[:6]
msg = msg + "\n---------------------------------------------------------"
msg = msg + "\n\nData file: " + get_context().path