Script execution

This commit is contained in:
2016-10-17 06:56:43 +02:00
parent 0c82b0eb09
commit 390cbb9477

View File

@@ -18,7 +18,7 @@ Preconditions - RF station is running
SECTION = "SINEG01"
# for 100 Hz and P2P-count = 100 this can be at least 1.1 seconds
latency = 2
latency = 12
#################################################################
@@ -62,6 +62,7 @@ mv_vsum_jit_phase = PV("VSUM_phase_jit" ,SECTION + "-RLLE-DSP:VSUM-PHASE-JIT-P2P
# auxiliary measured variables, but not scanned
mva_hvps = PV("HVPS" ,SECTION + "-RMOD:V-SET")
mva_rfrate = PV("RF_RATE" ,SECTION + "-RLLE-EVR:CHCK-EVNT")
#mva_hvps = PV("HVPS" ,"SINEG01-RMOD:V-SET")
# initialize all PVs
@@ -79,6 +80,7 @@ mv_vsum_jit_amplt.initialize()
mv_vsum_jit_phase.initialize()
mva_hvps.initialize()
mva_rfrate.initialize()
@@ -86,6 +88,7 @@ mva_hvps.initialize()
# scan
hvps = mva_hvps.read()
rfrate = mva_rfrate.read()
# define current amplitude as saturation amplitude, then define three scans
amplt_sat = cv_rf_amplt.read()
@@ -113,6 +116,7 @@ mv_vsum_jit_amplt.close()
mv_vsum_jit_phase.close()
mva_hvps.close()
mva_rfrate.close()
#################################################################################
@@ -279,7 +283,7 @@ print msg
# save the entry in the logbook
plot_files = get_plot_snapshots("Jitter Scan")
time.sleep(1.0)
elogllrf("Jitter Scan (HVPS="+str(hvps)[:6]+"V)", msg,"Measurement", "RF Stability", SECTION, plot_files)
elogllrf("Jitter Scan (HVPS="+str(hvps)[:6]+"V / "+str(rf_rate)[:6]+" Hz)", msg,"Measurement", "RF Stability", SECTION, plot_files)