LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree Control - Child Text Array Size Limitation?

There seems to be a limit to the size of the array of child text that can be used when creating a new tag in a tree control.

If I try to use the method "Add Item" and give it an child text array with 6 elements or more, I get an error 16 and the entry isn't indented correctly. If the child text entry is 5 elements or less, works fine.

There is no mention in the documentation of any limitation. See the attached example.
0 Kudos
Message 1 of 3
(2,554 Views)
Hi Mike,

The reason you are getting error 16 is because the 6th element in your array is empty. Try to give some units in the channel information and then your VI would not return any error.

Also, try to create a new VI with a tree control. You would notice that you can add as many elements as you want in the Child Text array without any error.

Regards,
Ankita A.
National Instruments
0 Kudos
Message 2 of 3
(2,551 Views)

Hello Mike,

Do you have any idea how can I read the child text from the tree control?

Your attached vi works but for example how can I read the "channel name" from the tree control?

Regards

Attila

 

0 Kudos
Message 3 of 3
(2,376 Views)