Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Terminating a sequence structure at the end of a sequence

Hi,
I've got sequence structure which is nested in a while loop. when the structure reaches its final stage I want the while loop condition to be executed hence ending the loop and continuing with the program. Is there something I can place in the final stage of the sequence structure that when the stage is reached, goes true/high so as to terminate the while loop??
0 Kudos
Message 1 of 2
(3,167 Views)
If you want to terminate the while loop after a single run, just put a Boolean constant in any frame or outside the sequence structure and wire it to the conditional terminal. A while loop will always execute at least once. Of course, if you want to terminate a while loop after a single run through your sequence structure, there's no reason to have a while loop in the first place.
0 Kudos
Message 2 of 2
(3,167 Views)