LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using vector in labview

Hello,

 

I'm verry new in labview so I don't know a lot about it (yet).

I use a Vision assistant from labview to detect red points in a scene, another one assistant to dectect blue points and a third one  to detect green points. I receive coordinates and area of each point detect by all the assistants, for each color I only use the two biggest point. So Now I have six points, two of each color.

For the experience I'm working on, I need to give a ID to each points, red => 1 and 2, blue => 3 and 4, green => 5 and 6. 

All of these work perfectly. I need help for the following:  I need to calculate the angle between the vector 12 and 23 and the vector 23 and 56.

 

I have no idea how to it in labview and the only stuff I found on the web was the NI documentation on Unit vector, and i havn't understand anything...

 

Thanks for your help ! 🙂

0 Kudos
Message 1 of 2
(3,005 Views)

convert the vectors to complex (x=RE, y=IM), subtract pairwise, then get theta.

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