08-18-2008 05:04 AM
Hi
Is there any way to get a list of local variables that are being used in my VI ?
Regards
Amit
08-18-2008 05:37 AM
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
08-18-2008 05:42 AM
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
08-18-2008 06:01 AM
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.
R
08-18-2008 07:02 AM