Skip to content
Snippets Groups Projects
Commit 72d201d5 authored by Giulio Gaio's avatar Giulio Gaio
Browse files

Added seq check state

parent c778067f
No related branches found
No related tags found
No related merge requests found
......@@ -210,13 +210,7 @@ def main():
print("Error: rms orbit > 0.6")
selfseq_dev.LogMsg = "Error: rms orbit > 0.6"
sys.exit(1)
# if sequencer is already running exit
if (str(selfseq_dev.State()) == 'RUNNING'):
if DEBUG == 1:
print("Error: sequencer is already RUNNING")
selfseq_dev.LogMsg = "Error: sequencer is already RUNNING"
sys.exit(1)
# if mimofb is already running exit
if (str(mimo_dev.State()) == 'ON'):
......@@ -267,6 +261,15 @@ def main():
# check the mimo is running (ON)
while (str(mimo_dev.State()) == 'ON'):
# if sequencer is not running exit
if DEBUG == 0:
if (str(selfseq_dev.State()) == 'RUNNING'):
if DEBUG == 1:
print("Error: sequencer is not RUNNING")
selfseq_dev.LogMsg = "Error: sequencer is not RUNNING"
sys.exit(1)
time.sleep(2)
# turn off the MIMO
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment