Discussion:
How to find out where I have used a certain Global/Local Variable
(too old to reply)
12fly
2008-08-06 23:10:05 UTC
Permalink
Hi Friends I want to track how and where the shared variable's  value has been
changed/Read when I try to debug the program. Anyone
here had the expenrience on how to find a certain shared variable in
the Block Diagrams/VIs. I will very appreciate you help. Cheers!
Karissa
2008-08-07 03:10:05 UTC
Permalink
Use the find tool. Hit Ctrl+F or select it from the edit menu.
If you want to find all global, local and shared variables with a certain name do a text search for the name of the variable. In the text search "more options" search only in the block diagram and make sure you search hidden labels, this will find the label of a shared variable.
Ben
2008-08-07 11:10:07 UTC
Permalink
In <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=343613#M343613" target="_blank">this thread </a>Ken T (of NI)&nbsp;posted code that uses scripting techniques to search for instance of Shared Variables.
&nbsp;
Ben
12fly
2008-08-14 07:40:21 UTC
Permalink
Hi All&nbsp;I have tried the&nbsp; ctr+F to find a certain shared variabl, but the result came out is looks all the shared varibales. How can I focus on 1 certain shared variable. I am using labview8.2.1.&nbsp;And I have tried the Find shared variables VI&nbsp; from the link Ben showed me. It can not work properly. It showed an error when I try to search, which says: Error 1057 as attached. Could anyone tell me why. Thanks. &nbsp;


Error 1057.JPG:
http://forums.ni.com/ni/attachments/ni/170/349214/1/Error 1057.JPG
Brian_A
2008-08-14 20:40:08 UTC
Permalink
It looks like KenT posted a newer version of that VI on the second page of that thread.&nbsp; He mentions something about it fixing an error, so maybe that is the problem you are running into.&nbsp;Cheers,&nbsp;
12fly
2008-08-15 07:10:06 UTC
Permalink
Hi, I have downloaded the latest find VI. The error is still there. Can anyone help out of this. Thanks


Error 1057.JPG:
http://forums.ni.com/ni/attachments/ni/170/349530/1/Error 1057.JPG
rpursley8
2008-08-15 14:40:21 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.
Loading...