Closedown
This commit is contained in:
@@ -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 = True
|
||||
self.beam_ok = False
|
||||
# True while executing the main loop
|
||||
self.running = False
|
||||
# For test and demo, simulate a beam loss after 15 seconds.
|
||||
@@ -851,7 +851,7 @@ class ScanGuard(object):
|
||||
while self.running:
|
||||
self._ringcurrent.pv.poll() #pend_event(timeout=1)
|
||||
new_beam_ok = self.check_beam()␍
|
||||
print new_beam_ok, self.beam_ok:
|
||||
logging.warning(str(new_beam_ok) + " - " + str(self.beam_ok) + "!")
|
||||
|
||||
if new_beam_ok != self.beam_ok:
|
||||
self.beam_ok = new_beam_ok
|
||||
|
||||
Reference in New Issue
Block a user