09-29-2017 09:39 AM
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
09-29-2017 10:28 AM - edited 09-29-2017 10:36 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-30-2017 12:02 PM
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.