Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  07 Apr 2020, Ivo Schulthess, Suggestion, Sequencer loop break 
    Reply  21 Apr 2020, Stefan Ritt, Suggestion, Sequencer loop break 
       Reply  23 Apr 2020, Ivo Schulthess, Suggestion, Sequencer loop break 
          Reply  23 Apr 2020, Stefan Ritt, Suggestion, Sequencer loop break 
       Reply  25 Apr 2020, Konstantin Olchanski, Suggestion, Sequencer loop break 
Message ID: 1875     Entry time: 21 Apr 2020     In reply to: 1874     Reply to this: 1876   1885
Author: Stefan Ritt 
Topic: Suggestion 
Subject: Sequencer loop break 
> I am using the Midas sequencer to run subsequent measurements in a loop, without 
> knowing how many iterations in advance. Therefore, I am using the "infinity" 
> option. Since I have other commands after the loop, it would be nice to have the 
> possibility to break the loop, but let the sequencer then finish the rest of the 
> commands. 
> Cheers,
> Ivo

You can do that with the "GOTO" statement, jumping to the first line after the loop.

Here is a working example:


LOOP runs, 5
     WAIT Seconds 3
     IF $runs > 2
         GOTO 7
     ENDIF
ENDLOOP
MESSAGE "Finished", 1

Best,
Stefan
ELOG V3.1.4-2e1708b5