From ab20ccf3988db2d0336b9322798cb880fa1fded1 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Wed, 19 Sep 2018 13:19:18 +0200 Subject: [PATCH] Script execution --- script/users/X-Treme users/launchOTF.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/script/users/X-Treme users/launchOTF.py b/script/users/X-Treme users/launchOTF.py index db17d9bb..16b7a210 100644 --- a/script/users/X-Treme users/launchOTF.py +++ b/script/users/X-Treme users/launchOTF.py @@ -1,17 +1,15 @@ -Estart = 1285.0 +Estart = 1280.0 Estop = 1292.0 OTFtime = 1.0 Eph.write(Estart) -MonoEnergy.waitValue(Estart) -""" + while True: - erbk = round(caget('X03DA-PGM:rbkenergy'),1) - if erbk == Estart: + erbk = round(MonoEnergy.read(),1) + if abs(erbk - Estart) < 0.3: break time.sleep(0.5) -""" print "done setting energy."