I've been brushing up on version 6 up by trying out some basic exercises.
Problem: In all VIs that involve a While Loop, it fails to stop when the condition terminal (the icon in the lower right) is fed a false boolean value. I've now tried a number of such exercises, doing them exactly as described. All I can figure is that somehow there is a configuration setup that I have overlooked, or some subtlety that is excaping me (this was a new installation on Windows 2000).
Attached is one of the simplest examples. It should stop looping when the switch is thrown, should it not?
Your conditional terminal is set to 'continue if true'. If you change it to 'Stop if true', it will loop until you change the value of your switch. This of course depends on which state your switch is initially. Otherwise, it works as it should.
It does not make sense if the loop of your attached VI does not stop. Can you put a probe on the green wire leading to the loop condition terminal? Does it reflect the button state?
A few things to check:
Make sure you are running the VI with the run button and NOT with the continuous run button! The continuous run button will constantly restart the VI whenever the loop finishes, giving the appearance that it does not work.
Make sure that the terminal of the boolean switch is inside the while loop (as in your attached VI).
Quote: Make sure you are running the VI with the run button and NOT with the continuous run button! The continuous run button will constantly restart the VI whenever the loop finishes, giving the appearance that it does not work.
Aha! You have spotted my oversight/ignorance. That certainly explains what I am seeing. (BTW, yes, I had at least thought to put a probe on the wire. But I misunderstood the nature of the run and continuous run buttons.)