06-13-2012 09:06 AM
Hi,
I call an exe with system exec block. I build that exe with Labview application builder. I need to open the front panel of some sub-vi included and I need to close them when they finish. The sub-vi node setup is configuered in this way: show front panel when called; close afterwards if originally closed. At the very first time I didn't include those sub-vi in source file tab of the application builder, so the application opened a pop-up of error. Then I include them in the source file tab: now the program works, but the VIs are all opened when the application start. I don't like that. How could I reply exactly the behaviour of VI in the exe file?
Thanks
Solved! Go to Solution.
06-13-2012 09:10 AM
Use property nodes within the subVI itself to open and close it's front panel.
05-07-2014 09:01 AM
Hello Mark,
Is it possible to close front panel of subvi from main VI??
05-07-2014 09:07 AM
05-07-2014 09:11 AM - edited 05-07-2014 09:12 AM
jatinpatel1489@gmail.com wrote:
Hello Mark,
Is it possible to close front panel of subvi from main VI??
Sure it is. You just have to get a reference to the VI and use an invoke node to close the front panel.
05-07-2014 04:51 PM
@Mark_Yedinak wrote:
Use property nodes within the subVI itself to open and close it's front panel.
It's even better to use Invoke nodes. 😉
/Y
05-08-2014 08:29 AM
Its Great,
One more thing I am looking for is to get list of all subvis which are in memory. How do I do this ??
05-08-2014 08:52 AM
If you drop an empty property node it's linked to Application by default, look for Application - Exported VI's in memory, or something similar.
/Y
05-09-2014 12:57 AM
My mistake in previous post actually I looking for list of subVIs having front panel opened. I should not have asked every small things but I am really not finding a way to get a list of opened sub vis. I would heartly appreciate if you could post a code or image for the same.
05-09-2014 01:35 AM
That's a valid question, as it's not that simple. 🙂
You'll need to get the Application in memory list, loop through it and open all ref's (as shown above) and check their window property.
/Y