12-06-2010 05:43 AM
Hi,
Is there a way to easily navigate around large vi's? I have a huge case structure containing many layers and I'm concurrently creating subvi's in a few seperate cases. Is there something like the MS Word "document map", or a way of tagging areas of code to skip to?
Thanks
Graham
Solved! Go to Solution.
12-06-2010 06:16 AM
There is a navigation window. I think the shortcut is Ctrl-Shift-N.
Felix
12-06-2010 06:21 AM
I was going to suggest the navigation window but it doesn't help to find bits of code in a case structure.
One other approach that I have seen is to create empty sub vis which can be dropped into multiple places - e.g. a 'more work required here.vi' or 'calculation section.vi'. You can then do a search for those vis and the results allow you to skip quickly to all of the places that those vis have been placed.
Personally I'm not a fan of that method as it can make the block diagram cluttered and a bit confusing - however, it might help with the navigation if it isn't possible to structure the code into a more readable format.
Ian
12-06-2010 07:26 AM
Thanks Felix, I do use the navigation window, but as Ian says, it doesn't help too much with case structures.
I rarely use the search facility because it is very slow on my PC, but I guess I could place local variables outside the case structure and "find references".
12-07-2010 06:53 AM
Hi Graham,
By adding text labelling to your block diagram (double left mouse click), you will then be able to use the find function (Ctrl-F) to navigate straight to it. In the case of multiple uses, then Ctrl-G and Ctrl-Shift-G allow you to toggle between instances in the search results screen (Ctrl-Shift-F).
All this information can be found at http://www.ni.com/pdf/manuals/373353d.pdf , in this case especially, the navigation section.
I hope this is of use!
12-07-2010 07:53 AM
Thanks Liam, that works well.