diff --git a/script/test/test.py b/script/test/test.py index 04f349c..f5f5a9e 100644 --- a/script/test/test.py +++ b/script/test/test.py @@ -1,6 +1,13 @@ -import os -import traceback -import thread -import time -caput("X11MA-VME-ES4:TRX", 6.5) \ No newline at end of file +caput("X11MA-PHS:E_SP",845) + +Eset = 845 +error = 10 +while abs(error) > 0.2: + time.sleep(1.0) + Ecurr = caget("X11MA-PGM:rbkenergy",'i') + error = Eset-Ecurr + print error + + + \ No newline at end of file