ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Tree Control

Solved!
Go to solution

Hi,

 

I have a tree control which I am using to display a test sequence.   I would like to put the tree controls in an array to display multiple (different) sequences.  I am having problems populating the controls.  When I get the reference, it populates all the controls in the array, rather than just one element.  

 

Is there a way to populate just a single element in the array?

 

Thanks
John 

0 Kudos
Message 1 of 5
(3,571 Views)
The only thing that can be different in an array is the value of the elements. All elements will share the same properties. In the case of a tree control the value is the item that's selected. The actual items is a property and hence every element would display the same items. If you need to have multiple tree controls then you would need to use a cluster, or just have multiple tree controls.
0 Kudos
Message 2 of 5
(3,563 Views)

Okay, thanks.  So would an array of cluster of tree control work?  

 

I would like it to be dynamic as the number of sequences depends on the test being run.

 

BTW, it is LabVIEW 8.6 

0 Kudos
Message 3 of 5
(3,557 Views)
Solution
Accepted by topic author jpsc

jpsc wrote:

Okay, thanks.  So would an array of cluster of tree control work? 


No, that won't work either. Encapsulating the tree control into a cluster in order to put it into an array will still leave you with the limitation that the properties (i.e., tree items) will be the same for each element.

0 Kudos
Message 4 of 5
(3,533 Views)
Thanks, I see now.  I have to think of another method.
0 Kudos
Message 5 of 5
(3,531 Views)