From ca403fba48c9a7af7cfb52e3f1617b7c46d7a847 Mon Sep 17 00:00:00 2001 From: gac-x11ma Date: Fri, 31 Aug 2018 16:30:43 +0200 Subject: [PATCH] Script execution --- script/test/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/test/test.py b/script/test/test.py index f5f5a9e..7a9ee7a 100644 --- a/script/test/test.py +++ b/script/test/test.py @@ -1,9 +1,9 @@ -caput("X11MA-PHS:E_SP",845) +caput("X11MA-PHS:E_SP",840) -Eset = 845 +Eset = 840 error = 10 -while abs(error) > 0.2: +while error*error > 0.2: time.sleep(1.0) Ecurr = caget("X11MA-PGM:rbkenergy",'i') error = Eset-Ecurr