LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way of find shared variables, where they are used in the project?

Hi,
 
It would be nice to find all instances for shared variables in a project or in a hierarchy like finding globals.
Is there any trick or plan to implement this?
 
Andras
0 Kudos
Message 1 of 5
(5,096 Views)
Hi Andras!

Gennerally in LabVIEW there is no way to find all instances of an Shared Vatialbe. But i have a little tool from a coullege for you, wich searches a LV Project for all instances of the Shared Variable.

How to use this tool:
-Open the ListSVMainVI.vi from the llb
-Select the Project wich countains the vi's and the variable you want search for
-Select the Main VI in the Main VI Paths (use the Array index 0), if there are more MainVI in your Project like it is in a RT Project where you normaly have a host and a target main vi, you must sellect all of them to that Array.
-run the VI this may take a while now you can see all of your instances of the Variables in the list at the right side, doubleklicking it opens the VI and shows the Shared Variable to you.

this toll is only experimential, so i can't do anything if it doesn't work correktly.

Best Regards
Tobias Lange

Message Edited by TobiasL on 05-22-2007 03:55 PM

0 Kudos
Message 2 of 5
(5,073 Views)
Hi!

The Tool which i had atachted to the last Post wasn't the least correct working Version, try this one.
Message 3 of 5
(5,067 Views)

I have to admit this is some interesting code.

Any chance of getting a version that will build?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(5,040 Views)

Hello Tobias,

I've downloaded and ran the vi you sent, but no shared variables were detected.

What could I be doing wrong?

 

Thank you.

Regards.

Pedro Raposo

0 Kudos
Message 5 of 5
(4,194 Views)