Closedown

This commit is contained in:
x03daop
2016-09-08 14:28:39 +02:00
parent b5bf9bfec9
commit 045833b889
+2 -3
View File
@@ -722,7 +722,7 @@ class ScanGuard(object):
# False = test mode, do not actually send out commands
self.controls_active = False
# True = beam is okay
self.beam_ok = False
self.beam_ok = True
# True while executing the main loop
self.running = False
# For test and demo, simulate a beam loss after 15 seconds.
@@ -850,8 +850,7 @@ class ScanGuard(object):
while self.running:
self._ringcurrent.pv.poll() #pend_event(timeout=1)
new_beam_ok = self.check_beam()
print "Beam OK= " , new_beam_ok
new_beam_ok = self.check_beam()
if new_beam_ok != self.beam_ok:
self.beam_ok = new_beam_ok
if new_beam_ok: