LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine subvi area to be shown in subpanel

Hey guys,

 

I have a subvi with 3 Graphs which I want to load in a subpanel to my main vi. How can I make sure the subpanel only Shows exactly the three graphs and no other controls etc. i.e. determine the exact area of my subvi shown in the main vi.

 

I tried to do it with Panel  bounds as you can see in the attachment. This does not work.

 

Regards

 

0 Kudos
Message 1 of 3
(2,452 Views)

So in these cases why not have the UI only be 3 graphs?  Have the front panel have only 3 panes (split how you want) and then have one graph control in each, and set it to fit to pane.  Attached is a demo I made for someone over on LAVA which allows you to select 1 to 8 panes (all subVIs) that get loaded into a single subpanel one at a time.  Things aren't perfect but pick the 3 signals, and choose a graph for each then hit start.  You'll see the subpanel loaded with a subVI.  Now you can reside the UI however you want and the graphs grow as needed maintaining proportions.

 

The point of this demo is to show you don't need code to be running to figure out what should be shown, or the size of your window in most cases.  Some times you do need to calculate this information and I suspect the pane and panel size properties will do this.  Post some more code if you can so we can run it and see what you are seeing.

Message 2 of 3
(2,426 Views)

I'd use two splitters on the subvi. Put the 3 graphs in the 3 panes. Set them to fit to pane. Now the 3 graphs will fit the entire subpanel.

Message 3 of 3
(2,378 Views)