13 lines
196 B
Python
13 lines
196 B
Python
|
|
caput("X11MA-PHS:E_SP",850)
|
|
|
|
Eset = 850
|
|
error = 10.0
|
|
while sqrt(error*error) > 0.2:
|
|
time.sleep(1.0)
|
|
Ecurr = caget("X11MA-PGM:rbkenergy",'i')
|
|
error = Eset-Ecurr
|
|
print error
|
|
|
|
|
|
|