08-09-2007 11:46 AM
If you want to stop the while loop programatically, just wire the condition into the stop sign. In your case, I am assuming that you want to stop after the 5th LED gets lit. So wire the 5th LED boolean to the stop sign. See attached vi.
08-09-2007 01:35 PM
08-09-2007 04:15 PM
08-09-2007 04:17 PM
A version saved as 8.0...
08-09-2007 04:20 PM
Am I understanding correctly. You have a series of VI's operating in series. After each VI, you want the next LED to turn on to show the progress.
I think an action engine would work. Each time it is called, it runs once and turns on the next LED and turns off the rest. You keep track of the next LED in an uninitialized shift register. You could pass in an array of references to each of the LEDS. (Or a reference to an array of LED's) that allows you to index to the reference that you want to turn on and off.
This would be a sub-VI you would put between your other VI's, you would control the flow by wiring the sub-VI's in series with error registers.