04-26-2015 04:23 PM
Hi all
I have the same code in two while loops controlling four LEDs. I am using a case structure in each loop to switch two conditions (condition A and condition B).
Condition A switches on LED 1 in the first loop and LED 2 in the second
Condition B sitchecs on LED 3 in the first loop and LED 4 in the second.
Each case selector receives a numeric value from a waveform.
Ok, here is what I would ideally like to achieve.
Have an On/Off button (or similar) wired to the loop condition terminal of both loops
If the button is on, loop 1 stops and loop 2 runs.
If the button if off, loop 2 stops and loop one restarts...i.e I want the button to switch on and off the loops with the program running
Thanks
Greg
Solved! Go to Solution.
04-26-2015 04:36 PM
What you want is a single while loop with a single case structure inside. A shift register will tell you which case will run on each iteration.
04-26-2015 05:22 PM
04-27-2015 03:19 PM
Thanks all
Im sure what you said ravensfan is the simpliest, but I kinda have the hang of case structures so I went with your suggestion Mike.
Thanks again
I am pretty new to Labview, but I have to say, this forum is the business....class