LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a list of local variables in VI

Hi

 

Is there any way to get a list of local variables that are being used in my VI ?

 

Regards

Amit

0 Kudos
Message 1 of 5
(3,803 Views)

Hi Amit,

 

Go to the find function (Ctrl+f), choose Objects radio button, Select object Functions->Structures->Local Variable, choose your vi as search scope and click Find.

 

//Martin



CLA
https://www.prevas.se/expertis/test--regulatoriska-krav.html
0 Kudos
Message 2 of 5
(3,797 Views)

Thanks for the reply,

What i really require is that if it is possible for me to get the list of all the Local variables with their names

and save it into a txt file as we do while looking at the Vi metrics in profile tab?

 

Regards

Amit

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

If you have that many Locals that you need a list, you are probably abusing their use.  When overused, Local Variables are notorious for causing race conditions, which leads to unexpected results when executing the code.

 

If you show us a typical example of your code, we may suggest improvements to avoid Locals.

 

Message 4 of 5
(3,783 Views)
In addition to what ray has told above.Have a look at this KB article
Message 5 of 5
(3,766 Views)