LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting All Tree Control Item names to array

Solved!
Go to solution

On my system (LabVIEW 2016, 32-bit) it takes 0.04 seconds to execute. Not sure why it's so much slower on your system.

Untitled.png

0 Kudos
Message 11 of 16
(1,722 Views)

Hmm.

The only one difference between mine and yours case is that you have your tree on the same Front Panel of the same Vi but I use reference to the tree from another Vi FP.

I tried yours, it is indeed 33 ms fast.  Very confusing. Why the external reference slows down the execution so much?

0 Kudos
Message 12 of 16
(1,718 Views)

There must be something else going on with your code, because I'm still seeing very fast execution time (0.03 sec) when wrapping the property node in a subVI:

Untitled.png

Message 13 of 16
(1,715 Views)

The one little difference is that in my code (which is pretty complex ones) I transfer tree reference via the Function Global.

It looks like the evil is hidden there  and the method of how I transfer the reference is confusing Labview.

Thank you very much indeed for your help.

 

FG ref.jpg

0 Kudos
Message 14 of 16
(1,710 Views)

Is this a screenshot from your actual code? Because I see the string array doesn't come out of the subVI. Does that mean you are populating a string array indicator somewhere via VI Server? Specifically with the Value property? Because the Value property is known to be very slow, thousands of times slower than updating an indicator via its terminal or a local variable.

0 Kudos
Message 15 of 16
(1,703 Views)

SubVi is the same as on my first screenshot. About the same as yours.

0 Kudos
Message 16 of 16
(1,698 Views)