LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retain VI front panel in Subpanel after VI containing subpanel is stopped

Solved!
Go to solution

Is there a way to retain the front panel image of a VI in a subpanel after the VI containing the subpanel is stopped?  The default action causes the subpanel to clear when the VI containing the subpanel is stopped but not closed.

 

Thanks in advance...

Steve

0 Kudos
Message 1 of 4
(3,187 Views)
are you using image dispose?
0 Kudos
Message 2 of 4
(3,165 Views)
Solution
Accepted by Electromecha

If you want the image of the FP, you can place a picture control under the SP, use the Get Panel Image method and push the result into the picture control. When the VI will stop the SP will become transparent and you will see the picture control.

 

I assume, though, what you actually want is for the FP itself to stay in the SP and I believe the answer is no. My experience has been that the caller removes the SP VI when it stops, whether you removed it or not, and a quick test indicates you can't insert a VI into an SP which isn't running. Personally, I never needed the SP to have a VI when the caller stopped. 

 

One workaround you might be able to use is to place the SP in an XControl. Xcontrols run at edit time as well, so I'm guessing this will work, but I haven't tried it.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(3,153 Views)

Those are interesting 'work around' methods. 

 

Mainly I was desiring the feature so that I could manually resize a transparent frameless subpanel quickly after modifying the GUI shown in the subpanel.  I think I'll invest some time in doing it programatically.  

 

Gracias.

0 Kudos
Message 4 of 4
(3,132 Views)