LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find shared variables

New Version of the tool which won't generate an error if you have password protected VIs or global variables with an extension .vi in your Project.

Enjoy!
Message 11 of 18
(4,439 Views)

I agree this would be very nice if it was built into LV Smiley Happy... thanks for the tool

SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 12 of 18
(4,393 Views)
In the project list under My Computer>>Dependencies there are vis listed for each of the shared variables.  If a shared variable is named 'Value' then there is a vi listed there named 'Globals_Value'.  If you click the right button and Find Callers, it will list all the vis where that variable is used.
Randall Pursley
Message 13 of 18
(4,389 Views)

rpursley8 wrote:
In the project list under My Computer>>Dependencies there are vis listed for each of the shared variables.  If a shared variable is named 'Value' then there is a vi listed there named 'Globals_Value'.  If you click the right button and Find Callers, it will list all the vis where that variable is used.

 

Thanks Randall... I hadn't thought of using that before, that will come in handy.  I doen't find the instance of the variable on the diagram howerver, just tells you what vis its used in.
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 14 of 18
(4,385 Views)

To find the shared variable instances on diagrams in 8.0, 8.2, and 8.5, the FindSV utility attached to this thread should work.  If you're using 8.6, you will need to use the VI Analyzer Test I have attached to this other thread.

 

 -D

0 Kudos
Message 15 of 18
(4,379 Views)

Hi, 

Yes I know : this is an old thread !

 

But I have one problem with this very useful tool.

I tried it on a little project and it works well fine, but when I want to search in a big project (not written by me) with a lot of SV, the execution of this tool stop without finish the search and without display any error message. So the list isn't completed anymore.

I think there is bad or missing link to some VIs, which I found grace of your tool KenT. But maybe still some remain invalid.

If I can see the code, I can understand why the tool crash!

 

Thank you, and all my apologize for my poor English, I hope that I am comprehensible !

Julien
0 Kudos
Message 16 of 18
(3,985 Views)

julien_82 wrote:

Hi, 

Yes I know : this is an old thread !

 

But I have one problem with this very useful tool.

I tried it on a little project and it works well fine, but when I want to search in a big project (not written by me) with a lot of SV, the execution of this tool stop without finish the search and without display any error message. So the list isn't completed anymore.

I think there is bad or missing link to some VIs, which I found grace of your tool KenT. But maybe still some remain invalid.

If I can see the code, I can understand why the tool crash!

 

Thank you, and all my apologize for my poor English, I hope that I am comprehensible !


That code just parse all of the diagrams looking for SV's and building arrays as it goes. Check your memroy on your machine while searching to see if you are running out of memory. If so try running the search against a sub-set of teh app to see what you get.

 

Yout should be able to use the "Callees" property of a VI to find all of its sub-VIs. If you write code to find all sub-VIs that may also give you a clue as to what you are running into.

 

Does the hierachy screen work for you?

 

On large apps it crashed regulary under LV ... 8.5 for me.

 

Just sharing ideas,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 17 of 18
(3,980 Views)

Easiest way I found was to view the label for the Shared Variable and then search for Text within the label making sure to select the option to search for both Visible and Hidden labels.

 

 

Message 18 of 18
(2,354 Views)