04-15-2019 06:45 AM
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.
04-15-2019 06:58 AM
04-15-2019 03:41 PM
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).
Bob Schor
04-18-2019 01:27 AM
Hi bob
I tried your approach but, being a newbie, i am stuck.
i am able to switch Subvis with button click but it shows only a snapshot of subvi's front panel not the running thing. please see my code and suggest.
04-18-2019 02:03 AM
04-18-2019 04:35 AM
Thanks all