LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to search and debug shared variables?

Hi,



I have a quite big application with a lot of shared variables spread around in my code. My problem is that I can’t find a way to locate the different variables in the project VI’s, I have tried the find function (ctrl F), but it doesn’t find any of the shared variables in the list. All of the variables is added to the project. Any tips how to solve this? It’s a pain to search all my VI’s manually…


Another question, is there a way to monitor the value of shared variables during execution, something like the watch function in LabWindows/CVI? And is it possible to brake when a variable’s value changes?

Best regards,

Per

 

 

0 Kudos
Message 1 of 5
(3,476 Views)
It is my understanding that you can simply add another VI to your project which contains nothing but the shared variable(s) linked to an appropriate indicator, and thus monitor the shared variable.

As for your first question, what if you altered a shared variable in such a way as to break the wires attached to it, and then looked at the VI error list?
0 Kudos
Message 2 of 5
(3,471 Views)
Thank you!

Deleting the shared variable from the project and look at the VI error list would work, but is it not a more proffessional way to search shared variables? Anyone?
0 Kudos
Message 3 of 5
(3,454 Views)
It still does not seem to be possible to search (find) or replace shared variables in LV 8.5....
 
NI?  
0 Kudos
Message 4 of 5
(3,121 Views)

I was looking for something like this a while back, and EmmaR and SarahB came up with a nice VI that will find and list the variables in a project. Hopefully this will become a built-in feature in LV someday.

http://forums.ni.com/ni/board/message?board.id=170&thread.id=190826&view=by_date_ascending&page=1

0 Kudos
Message 5 of 5
(3,117 Views)