v1.8
This commit is contained in:
@@ -2,7 +2,7 @@ dry_run = True
|
||||
do_elog = True
|
||||
|
||||
if get_exec_pars().source == CommandSource.ui:
|
||||
bph_ref_user = 0.0
|
||||
bph_ref_user = 19.0
|
||||
plt = None
|
||||
else:
|
||||
bph_ref_user = args[0]
|
||||
@@ -13,13 +13,11 @@ if not dry_run:
|
||||
caput("SINEG01-RSYS:SET-VSUM-PHASE-OFFSET-BASE", phaseOffset_new)
|
||||
caput("SINEG01-RSYS:CMD-LOAD-CALIB-BEAM", 1)
|
||||
if do_elog:
|
||||
log_msg = "SINEG01-RSYS:SET-VSUM-PHASE-OFFSET-BASE \n"
|
||||
log_msg = log_msg + "Old: %0.1f" % phaseOffset_old + " deg \n"
|
||||
log_msg = log_msg + "New: %0.1f" % phaseOffset_new + " deg \n"
|
||||
log_msg = "SINEG01-RSYS:SET-VSUM-PHASE-OFFSET-BASE: %0.2f" % phase_offset_new + " deg (was %0.2f" % phase_offset_old + " deg)\n"
|
||||
attachments = []
|
||||
if plt is not None:
|
||||
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
|
||||
file_name = os.path.abspath(get_context().setup.getContextPath() + "/SchottkyScanSetPlot.png")
|
||||
file_name = os.path.abspath(get_context().setup.getContextPath() + "/GunEnergyScanSet.png")
|
||||
plt.saveSnapshot(file_name , "png")
|
||||
attachments = [file_name]
|
||||
elog("Set gun phase", log_msg, attachments)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
devlist = ['01', '02', '03', '04', '05', '06', '07', '08']
|
||||
|
||||
for dev in devlist:
|
||||
caput("S10CB" + dev + "-RSYS:SET-BEAM-PHASE", 83.5)
|
||||
Reference in New Issue
Block a user