LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the global variable VI in a labview project

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

0 Kudos
Message 1 of 5
(4,566 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(4,559 Views)

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.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 5
(4,540 Views)

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... 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(4,535 Views)

Thanks Paul.  That's what I wanted. Saves a lot of hunting when exploring unknown projects.

0 Kudos
Message 5 of 5
(4,527 Views)