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: 

tree structure

Hello all.
 
I have a map of a building that is presented in a tree strcture, where each node represents a room. I need to find a way to implement this tree in LABVIEW for finding the route from one rooom to another. For eample if anyone wants to go from room E to room D , the route will include passing along rooms A then B ( see the attachement please)

thanks,
0 Kudos
Message 1 of 4
(3,830 Views)

Labview has a Tree control.

Just eplement the structure..

Then from a room, go one step back (to the parent) and check if the room you want to go is a child. If not go another step back and do the same.

It should be quite easy.

0 Kudos
Message 2 of 4
(3,818 Views)
One easy shortcut is using paths.

In LabVIEW.8.x a primitive 'relative' path is introduced that will give the relative path between to paths.

For LabVIEW 6.x and 7.x OpenG has a similar function

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(3,795 Views)
Sorry , Can you help me more, by explianing more or give example?
0 Kudos
Message 4 of 4
(3,786 Views)