Re: How to close certain subvi front panel?

2004-03-21 Thread Robert Cole
How does your VI decide which subVI to close when you hit the button on the front panel? Is it by name? If so, then that's all you need to open a reference to the subVI. There is a property node that will list all VIs in memory, but if you have a large program, this could be a huge list. Windows

Re: How to close certain subvi front panel?

2004-03-16 Thread lihui
i think my prob. with this is that i dont want my subVI to close unless i specify them. i will post my program tomorrow thanks. I actually need a button in my mainVI to reset mainVI front panel settings and close subVIs (that is opened). And this button is suppose to be able to work anytime. Thus

Re: How to close certain subvi front panel?

2004-03-16 Thread lihui
Thanks. I will try this method. But it means that i have to read every one of my subVIs?(Pls correct me if im wrong.) And if thats the case its alot of them. Is there any way to get hold of any reference to the front panel that is opened?

Re: How to close certain subvi front panel?

2004-03-16 Thread Robert Cole
One of the things that you might try is that the property node for front panels includes the Front Panel Open property that you can READ to see if the panel is open before you try to close it. It's a boolean so easy to build a case structure after it. Hope this helps. Rob

Re: How to close certain subvi front panel?

2004-03-16 Thread IMD
can you attached your program? As i am not sure what you mean of "The mainVI button is suppose to reset and close the subVI FP". Normally i us ed set the subVI to be open when called and close subVI after finished runing. you can do it by pointing the subvi in your mainVI and right click selected t

How to close certain subvi front panel?

2004-03-15 Thread lihui
Hi, i have a program with many subVIs and they open at different situation. I need them to be open until i click a button in my mainVI. The mainVI button is suppose to reset and close the subVI FP. Is there a simple way to do it because i have many subVIs? I tried close FP method but the problem wi