09-20-2007 06:14 PM
09-20-2007 06:47 PM
09-20-2007 07:05 PM
It kinda does. The main VI updates data to a global variable. The sub vi's purpose is to alert the user that there is a channel in "alarm". I could make it do what you suggest but I also need an "close window" button that would close the sub vi front panel when the user clicks on it. So the sub vi has a case structure which sits there and waits for the user to click on the "close window" button to complete its execution and hence close itself. is there another way to do this? I suppose i could make the user close the vi using the red 'x' provided by windows but I must use some sort of "ok" or "close window" button on the sub vi's front panel.
Thanks
09-20-2007 08:11 PM
09-21-2007 10:36 AM
09-24-2007 10:02 AM
FWIW, I'd advise that you go with altenbach's first suggestion and simply require users to click the Windows' standard top-right-corner 'x' to close the pop-up. I've done similar things to handle certain types of fault notification. It's an easier implementation if you're fairly new to LabVIEW.
To implement a method where the subvi always runs but decides when to be visible, you'd probably need to get familiar with Queues or Notifiers as a method of asynchronous data communication. A good thing to learn as you get more LabVIEW experience, but probably more difficult right now for the immediate problem at hand.
-Kevin P.