Discussion:
Find shared variables
(too old to reply)
Ben
2008-03-05 14:40:07 UTC
Permalink
Find a SV no.
Find All SV's yes.
<img src="Loading Image...">
&nbsp;you limit your app to only one SV you are safe. :smileysurprised: :smileywink:
BenMessage Edited by Ben on 03-05-2008 08:16 AM


FindSVs.PNG:
http://forums.ni.com/attachments/ni/170/306470/1/FindSVs.PNG
kenT
2008-07-23 14:10:10 UTC
Permalink
Hi! Here a little tool which search Shared Variables in block diagrams.Give the project path, the tool will search all VIs in project for Shared Variables and you can search them.RegardsKen


FindSV.llb:
http://forums.ni.com/attachments/ni/170/343317/1/FindSV.llb
Ben
2008-07-23 17:10:08 UTC
Permalink
Thank you Ken,
Could you back save that to LV 8.2 so we can use that in our 8.2 application work?
According to the error message I get, it looks like you used a condition terminal in a For loop (new to LV 8.5) and since the code is password protected, I can't fix this myself.
Thank you,
Ben
kenT
2008-07-24 07:40:07 UTC
Permalink
Hi Ben, Here the 8.2 Version.Regards Ken


FindSV.llb:
http://forums.ni.com/attachments/ni/170/343570/1/FindSV.llb
Ben
2008-07-24 12:40:05 UTC
Permalink
Thank you Ken!
This will come in handy!
BenMessage Edited by Ben on 07-24-2008 07:15 AM
kenT
2008-07-30 13:40:05 UTC
Permalink
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!


FindSV.llb:
http://forums.ni.com/attachments/ni/170/345102/1/FindSV.llb
Snamprogetti
2008-07-24 08:40:06 UTC
Permalink
thank you. it should become a standard labview tool
StevenA
2008-08-15 15:10:07 UTC
Permalink
I agree this would be very nice if it was built into LV :smileyhappy:... thanks for the tool
rpursley8
2008-08-15 15:10:08 UTC
Permalink
In the project list under My
Computer&gt;&gt;Dependencies there are vis listed for each of the
shared variables.&nbsp; If a shared variable is named 'Value' then there is
a vi listed there named 'Globals_Value'.&nbsp; If you click the right button
and Find Callers, it will list all the vis where that variable is used.
StevenA
2008-08-15 15:10:09 UTC
Permalink
rpursley8 wrote:
In the project list under My Computer&gt;&gt;Dependencies there are vis listed for each of the shared variables.&nbsp; If a shared variable is named 'Value' then there is a vi listed there named 'Globals_Value'.&nbsp; If you click the right button and Find Callers, it will list all the vis where that variable is used.
&nbsp;Thanks Randall... I hadn't thought of using that before, that will come in handy.&nbsp; I doen't find the instance of the&nbsp;variable on the diagram&nbsp;howerver, just tells you what vis its used in.
Darren
2008-08-15 15:40:06 UTC
Permalink
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.&nbsp; If you're using 8.6, you will need to use the VI Analyzer Test I have attached to <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=348774#M348774" target="_blank">this other thread</a>. &nbsp;&nbsp;-D
Continue reading on narkive:
Loading...