LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I find all uses of a variable in LabView?

Hello.

I'm analyzing a pretty big LabView code and it would be great if I could chose one specific variable and find all places that this variable is used (read or written) within all the VI's. Can anybody help me here?

Thanks.
0 Kudos
Message 1 of 14
(4,964 Views)
If you are referring to a local variable or global variable you can right click on an item and select find

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 14
(4,952 Views)
That was my first try, Ton. However, there's not "find" option there...
I tried to use the "Edit/Find and Replace" tool, but it doesn't seem to give me the results that I need.
Any suggestion?

Thanks.

Daniel
0 Kudos
Message 3 of 14
(4,947 Views)
That seems odd.  Just to clarify Ton's post...

If you right click on any of the variables you should see a Find -> and when you expand the menu, you'll see Indicator (or Control), terminal, and local variable (which should be greyed out).  If you find the Indicator/Control or the terminal and then repeat this process, you can get a list of the locals.

I apologize if this is just reiterating, I just wanted to be sure.



Edit, I just read that you said ALL your vi's.  Is that to say you're looking for all global variable uses?

Message Edited by Day on 09-28-2006 04:07 PM

Message Edited by Day on 09-28-2006 04:08 PM

0 Kudos
Message 4 of 14
(4,944 Views)
What is your definition of a "variable"? 😉
0 Kudos
Message 5 of 14
(4,938 Views)
That's right, Day.
 
I do want to find all uses (within all the VI's in my project) of a specific variable.
 
You know when you go to the Project Explorer, right click, and choose "New / Variable". That's the kind of variable I'm talking about. It could be a global or a network published one, for instance.
 
When I put this variable in one of my VI's block diagrams and right click on it I really don't get the "find" option (I would include a picture here, but I don't know how to put it here...).
 
I hope I was clearer now...
 
So... any suggestions?
 
Thanks!
 
Daniel
0 Kudos
Message 6 of 14
(4,909 Views)
Ahh, the new "shard variable"! 🙂
 
Display the VI Hierarchy (menu...view.VI Hierarchy) and find the desired variable. Right-click on it and do a "Find all instances".
 
See if this works for you. 😉
 
 
0 Kudos
Message 7 of 14
(4,904 Views)
Well, actually the above still does not find anything in my casual testing. Strange.... 😞
0 Kudos
Message 8 of 14
(4,900 Views)

Yeah... I don't think that works very well for my purposes here...

But thanks for the try! Any other ideas?

0 Kudos
Message 9 of 14
(4,896 Views)

So...

Just to be sure before I call NI about this: does anybody know how to find all places a specific variable (say, a global string) is used throughout all the VI's block diagrams in a project?

Thanks.

0 Kudos
Message 10 of 14
(4,861 Views)