cancel
Showing results for 
Search instead for 
Did you mean: 

Find shared variables

Ken_Tobler
Active Participant

Re: Re : Find shared variables

Message contains an attachment
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!
StevenA
Active Participant

Re: Find shared variables

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
-------------------------------------
rpursley8
Active Participant

Re: Find shared variables

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
StevenA
Active Participant

Re: Find shared variables


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
-------------------------------------
Darren
Proven Zealot

Re: Find shared variables

Message contains a hyperlink

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

Tags (2)
M.Julien
Member

Re : Find shared variables

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
Ben
Knight of NI Knight of NI
Knight of NI

Re: Re : Find shared variables


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
STSLabs
Member

Re: Find shared variables

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.