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 have a situation shown very simply in the attached picture. I have two While Loops that I want to run uninterrupted in parallel, but for the second one to only start running when a button is pressed. Adding a Case Structure around the second While Loop and attaching it to the button does work. The actual application of this is a subvi pop-up, which contains its own while loop and shows on button press, running alongside a main vi. But hopefully the simple picture solution will be the same. Any ideas? Thanks.
You say the case you're trying to solve is a pop-up subVI with its own While loop. What should happen when the boolean is false? Does the loop pause, or is it just that the subVI is invisible/hidden?
Is there any data dependency between the two loops?
Sounds to me like you should be using the Asynchronous Call By Reference to run the VI when that button is pressed. This way the VI will run in parallel with your main loop and will only be loaded when it is needed.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5