06-09-2022 03:44 AM
@JÞB wrote:
As sad as this may actually sound, None of the LabVIEW Core training material actually covers the VI Hierarchy view.
I've always found the VI Hierarchy quite useless.
I agree, for small messes it can be a lifesaver, but it really doesn't scale up. For large projects, it doesn't give any overview at all:
Not with 1X scaling (look at that scrollbar):
Nor fit to window (that doesn't actually fit to window at all):
In my current project, the VI hierarchy corrupts the window when I switch to fit to window, and I need to restart LabVIEW to fix it.
There's also the LabVIEW Class Hierarchy window (Under the View menu).
Same problem...
Here's my class hierarchy, fit to window:
I guess there will be some relief if I grouped things in libraries. But I really don't want to. Tools should serve me, not the other way around.
06-10-2022 04:59 AM
Getting the hang of of Ctrl-F and VI-Hierarchy. And for small scope views it fine. And a lot better than nothing.
Thanks.
06-17-2022 05:17 PM
You are using it poorly
Lets look at a Cont Meas and Logging lvproj (from Template)
What a mess! Hold it WHY are we always showing full vi paths? They show up on hover over so lets turn that off by deselecting View>> Always show labels
Better but Why are we showing items in VI lib? we can toggle that with the TOOL that looks like a folder with "VI" in it
r
We can toggle Globals and controls too!
Now we have something reasonable. But do I really need all That and what else can I find out BESIDES inspecting VI Documentation and IOs by simple hovering with the Help window open?
I can Group by library and expand or collapse any library I Want
I can even ZOOM into the area of code I am interested in, Move things around, expand or collapse any subvi hierarchy, Highlight connections, Find objects, Open FPs with a double click (Open the BD with Ctrl+Double click EVEN on Globals!) Open items that need Documentation or Icons without depending on some Code Review tool you don't have. Collapse or expand project targets, or even show what vis are in each context you have open e.g your project and some Untitled code you opened in the main app instance from these forums.
So now you love the VI Hierarchy view! don't be afraid to brag about nailing it to your friends!