02-08-2013 07:43 AM
Is there any way to identify if there are global variables used in a labview project? I would like to find the global VI, if any, in a large labview project that I just inherited.
Thanks,
Roger
02-08-2013 08:05 AM - edited 02-08-2013 08:05 AM
Hi RDH,
when you already know the VI containing your globals you could either:
- right-click the VI in the project tree and select Find->callers
- open both the global and the main VI of the project. Then right-click any control in the global VI and select Find->instances (this will work for all VIs in memory, so VI loaded at runtime by VI server will not be found by this step)
When you don't know if there are any globals at all in your project you probably can use some property nodes to check the type of each VI in the project...
02-08-2013 11:22 AM
if you have a top level vi opened, use ctl-f on the block diagram under find one option in the menu is globals. a palette will list any globals opened in the project.
02-08-2013 11:31 AM
Hi Paul,
that is so obvious...
If you only use proper projects, where all global variables (if any are used) are located in VIs with names containing "Global", you never ever need to open the Find dialog to search for them... 😄
02-08-2013 12:06 PM
Thanks Paul. That's what I wanted. Saves a lot of hunting when exploring unknown projects.