From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I could not see how your code was written but there seems to be a loop. Put a shift register on the loop (right click on the border of the loop and select add shift register). The shift register allow information (which toggle was clicked) to be passed from the previous iterations of the loop to the present. Then all you need is some logic for passing the appropriate which toggle was clicked information. See the shipping example code under loops for some examples of the shift register in action. Also look at the state machine in the vi templates. Good luck with the project. Jeremy Braden National Instruments