LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Micael_

Find all instances on Shared Variables

Status: New

Hi all,

 

I often use the "Find all instances" right-click command for VIs on the block diagram.

Why don't add this command to shared variables ?

I think it could be helpful to be able to check everywhere a variable is used within the project.

Cordialement,


Micaël DA SILVA
6 Comments
Darin_G
Member

Hi Micael,

 

This is Darin from LabVIEW R&D, specifically I'm responsible for driving continuous improvement and new features into the Shared Variable.

 

In LabVIEW 2009, we responded to this feedback.   If you launch a LV project, you can right-click on a variable and select 'Find Callers'.   If you have multiple instances of the variable, then you will get a list like this:

 

find_callers_dialog.png

 

when you double-click a VI in this list, it will highlight the VI in the project that contains an instance of the variable.

 

Also, on a variable node on a block diagram, you can right-click it and select: 'Show Variable in Project'.  This move the focus to the LV project window and highlight the variable.

 

For future releases, we would like to have Find that works more like Ctrl-F find in LabVIEW, but we had to make a tradeoff between doing what we did in LV 2009 and doing nothing for a few releases.  

 

I hope you like the feature and it will address your needs.

 

~thanks,

Darin Gillis

LabVIEW Platform R&D

Darin Gillis
NI - Chief Product Owner - VeriStand
Micael_
Active Participant

Thanks Darin !

I didn't try LV 2009 yet, but I think this wil be one more reason to try it !

 

Micaël DA SILVA

Mesulog

 

Cordialement,


Micaël DA SILVA
Taylored_Solution
Member

The search view Darin explained only tells you which VIs use the shared variables from the project view.  I want to know where in the VI it is used.  I would like the ability to right click on a shared variable to find all instances. 

There are times I need to change the source of the shared variable from the RT targer to the PC targer.  The only way I have found to be effective is to delete the RT variable then use the broken arrow to find all the instances and point them to the new PC variable.  

donkdonk
Member

[..] I want to know where in the VI it is used [..]

I fully agree, kudoos

marseko
Member

I totally agree to the requests from the previous posts (Kudo) and I want to add another request that is based on that topic:

 

When I used a shared variable node and (later) want to find the position (in any VI) where it is written (=host), there is no way to find it...only by knowing (which often takes time).

 

It means in figure 3 in that linked article: How to find the variable (write shared variable node) on the right.

http://www.ni.com/white-paper/4679/en/#toc1

 

Best regards!

TimHennesy
Member

Checking back in 2024 if there is any update on how to search for all instances of shared variables? Being told what VI it is in does not meet the goal of trying to find where exactly it is called. Was this ever updated? I cannot seem to get anything for find shared variables by right clicking or ctrl+f or anyhting.

 

Looking forward to any means to find these.

 

Thanks,

Tim