On my main vi I have two OK Buttons(OK Button1 and OK Button2) and a subpanel. I have two subvi Sub1 and Sub2 both have a while loop running with some front panel control.
I want to load Sub1 when I click OK Button 1 and Sub2 when I click OK Button 2. But the condition is when I load Sub2 my Sub1 should not get close, it should go to background and keep running so that it may pop up again when I press OK Button1.
Solved! Go to Solution.
your subVIs will not go into "stop" when you unload them from your Subpanel: so all you need to do is to load the needed subVI into the Subpanel!
GerdW is correct (but I already knew he would be). I have an application that runs up to 24 acquisition Stations for 2-3 hours, with the SubPanel allowing you to look at any one of them. They keep running (one of the sub-Panels displays the graph over the past period of time) and you can see a continuous trace as you switch between different Stations. All I do is say "Put Station 1 into the sub-Panel" (or, if I don't want to look at any of them, I say "Remove VI" and the sub-Panels go blank -- I can, of course, turn them back on by choosing a Station again).
as soon as you place a Wait in each of your subVIs to make them non-greedy you get your expected result…