LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Transitioning

Under LabVIEW 8, when my main program calls a sub-vi and the vi terminates, it flashes as it terminates. The program is an executable that maximizes and centers the display when the sub-vi executes (all sub-vi have the same effect). It appears that what is happening is that as it closes it reverts to the screen size under which it was built. This did not happen under version 7. I have tried everything I can think of and NI recognizes it as a problem but cannot give me a solution.
0 Kudos
Message 1 of 6
(2,825 Views)
Did you try also using VI Server to hide the subvi front panel before terminating?

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 6
(2,816 Views)
Hi Dark Eagle,
 
I want to be sure I understand exactly what it is you want your program to do. It sounds like you have a main (top-level) VI that programmatically launches Sub-VI's. When these subVI's launch, they automatically maximize and center their displays. You say that when "it closes it reverts to the screen size under which it was built." Are you referring to the subvi's or the main vi? How are you closing the subvi's? Manually or programmatically? Are you using VI Server or sub-vi node setup? Also, can you explain a little more where the flashes occur?
 
I apologize for all the questions. I just want to make sure I have a firm understanding of what is going on. If there's any sample code that demonstrates this behavior, that would also help.
 
Thanks in advance!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
0 Kudos
Message 3 of 6
(2,800 Views)
I have not tried VI Server to close the front panel.  I will look into that.  The attached example illustrates the problem that I am having.
0 Kudos
Message 4 of 6
(2,786 Views)
Hi Dark Eagle,
 
Thanks for the code. It appears that the behavior of closing front panels has changed somewhat from LV 7.1 to LV 8.0. I reported this to R&D (# 3YMBG13Q) for further investigation. A possible workaround would be to use VI Server to actually hide the front panels of your subvi's before you close them. Specifically, you can call the Front Panel >> Open method for the VI Class using an invoke node. I have attached a modified version of your code that demonstrates this concept. 
 
Hope this helps -- thanks for the feedback!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
0 Kudos
Message 5 of 6
(2,770 Views)
Using the VI Server to hide the front panels of the subvi's before closing them worked like a champ.  Thanks for your help Charlie.
 
0 Kudos
Message 6 of 6
(2,761 Views)