LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panels of an executable?

Hi,
I'm building an executable which takes 5 top-level VI's but the goal is to have 3 of them always come up visible. I have played around with window appearance, but really can't figure out why one of my Vi's is always overshadowing the other, granted i takes up the whole screen where as the other one is only 1/4 of it. Basically I want to know what I need to set on each VI such that 3 particular Vi's come up in the foreground and the other 2 bigger ones are in the background, there must be some options that I just don't know about. Keeping in mind that all 5 are seperate VI's, none are one anothers subVi,
Thanks,
0 Kudos
Message 1 of 3
(2,848 Views)
You might take a look at the LabVIEW Windows Utilities (file LVWUTIL32.ZIP in the NI database). In these libraries is a couple of VIs that do "Move Window to Top" and "Move Window to Bottom". When you start up, you can use these VIs to put the windows in whatever order you want. This seems like a reasonable solution to me.

Rob
Message 2 of 3
(2,848 Views)
Hi Helper,

Expanding on Rob's suggestion.
1) Create a sperate sub-VI that checks the VI currently loaded in memory for the three you are concerned with, and periodically makes them top-most.
2) It should shut itself down when it does not find one of these.
3) Create a launcher VI that spawns off this "On-Top-VI" if is not already loaded.
4) Put the launcher in the init part of each of the three VI's of interest.

So, if you run any of them, the Top-Most... will launch only on the first run. It will keep things arranged the way you want, and it will shut itself down when it is no-longer needed.

Ok, I have spent to much time on this already.

(Good answer Rob),

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,848 Views)