LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert 2D data to tree control (recursion) create net topology

Solved!
Go to solution

Hi all,

I have 2D data array that include parent and children.(i dont have order level!!!).but i know the parent (Pa:00001) is the root.

i want to create a tree control so we can see the connection between the unit.i try to do that but no succsess...any help will be welcom.

pls see the att files.(the jpg file is what i want to achieve).

regard's

eyal.

using labview 2012.win 7.

Download All
0 Kudos
Message 1 of 5
(2,931 Views)

Hi JTAG

 

This example can help you build the tree control you want!

 

Regards

Chris S.
0 Kudos
Message 2 of 5
(2,813 Views)

hi ,

thanks for your replay.

my problem is how to order the 2d array.

Pa:00001=root.

                child Ma:01218,                                  Ma:01024

                               Ma:01112,Ma:01130                 Ma:01016,Ma:01074

and ect....

tanks.

0 Kudos
Message 3 of 5
(2,771 Views)

This is one way of doing it. Basically start from the parent and for each parent add its children to a queue. Then go over all of them until the queue is empty. There's some cleanup to do, but it shows the basic concept.


___________________
Try to take over the world!
Message 4 of 5
(2,752 Views)
Solution
Accepted by topic author JTAG

Hi tst,

wow....wow....wow

 

excellent job.!!!! thank's.

0 Kudos
Message 5 of 5
(2,726 Views)