LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the teminal at the end of the wire...

I'm working on some code to walk along a wire from an arbitary segment (i.e. I know two joints that are direct neighbours) looking for the sink terminals that are 'downstream' of this segment.

I can (easily I think) build a list of joints that are the endpoints of the wire that are downstream from my starting segment, but how do I the  find which elements of the Terminals[] property for the wire are connected to those endpoints ? The only way I can see right now is to test the position of the terminal and the position of the joint and see where the closest ones are, but this will obvious fall over if the block diagram has craziness such as terminals connected to the same wire sitting on top of each other. Is there any known relationship between the order of the joints[] property and the order of the terminals[] property for a wire ?

--
Gavin Burnell
Condensed Matter Physics Group, University of Leeds, UK
http://www.stoner.leeds.ac.uk/
0 Kudos
Message 1 of 2
(5,054 Views)

I am using same method as you.

0 Kudos
Message 2 of 2
(2,571 Views)