ScrenPanel6

This commit is contained in:
root
2020-02-07 11:43:37 +01:00
parent 7f88d445af
commit f957ab5cb8
63 changed files with 12762 additions and 382 deletions
+3 -10
View File
@@ -1,5 +1,5 @@
Eph1 = 9.45 # actual photon energy
Eph2 = 12.0 # desired photon energy
Eph1 = 11.312 # actual photon energy
Eph2 = 12.00 # desired photon energy
do_elog = True
@@ -11,22 +11,15 @@ for und in undlist:
K1[und] = K
K2[und] = ((Eph1 / Eph2 * (K**2 + 2) - 2))**0.5
print K1,K2
# set laser on-delay
caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel",1)
caput("SIN-TIMAST-TMA:Beam-Apply-Cmd.PROC",1)
#if Eph2 > Eph1 :
# for und in undlist: caput(und + "-UIND030:K_SET", 1.1)
# time.sleep(40.0)
for und in undlist: caput(und + "-UIND030:K_SET", K2[und])
time.sleep(10.0)
# set laser on-beam
caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel",0)
caput("SIN-TIMAST-TMA:Beam-Apply-Cmd.PROC",1)
#Elog entry
if do_elog:
title = "Wavelength change"
log_msg = "Old photon energy: %0.2f" % Eph1 + " kev\n"
log_msg = log_msg + "New photon energy: %0.2f" % Eph2 + " keV\n"
attachments = none
attachments = None
elog(title, log_msg, attachments)