01-15-2014 09:57 AM
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.
Solved! Go to Solution.
01-17-2014 04:53 PM
01-19-2014 01:50 AM
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.
01-19-2014 09:11 AM - edited 01-19-2014 09:13 AM
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.
01-20-2014 01:28 AM
Hi tst,
wow....wow....wow
excellent job.!!!! thank's.