03-27-2018 09:14 PM
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.
03-27-2018 10:30 PM
So, some questions:
03-27-2018 11:13 PM
All you need is a single outer while loop. Put the code that should not always run into a case structure.
03-28-2018 06:15 AM
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.