LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find angle between all four points

I want to find the angle between all points A(247,303),B(421,176),C(237,192),D(432,286)

I found that if i give all these points to IMAQ find angle it finds the angle either between AB-CD or taking one point as vertex and calculating between consecutive points.

For eg:Vertex as pointA- remaining all points if supply as an array, IMAQ find angle function gives angles between B-A-C,C-A-D.

But i need B-A-C,C-A-D,"B-A-D"(missed).Similarly for all vertices. Any help???

 

Thanks
uday
0 Kudos
Message 1 of 11
(6,505 Views)

The formula for finding the angle between two lines is relatively simple and easily implemented in LabVIEW.  I would probably write a subVI which does this, given three points in a specific order, then cycle your point sets through this subVI using a FOR loop.  Let us know if you need more help.  Google is your friend.

0 Kudos
Message 2 of 11
(6,502 Views)

No, iam not trying to find angle between two lines. 

I want to find the angle between three points. that is angle between points B-A-C,B-A-D,B-A-D,C-A-B,,C-A-D,D-A-B,D-A-C. Next similarly for B,C and D as vertices.

Would be great if you can help me.

 

Thanks
uday
0 Kudos
Message 3 of 11
(6,487 Views)

@udayakumar wrote:

No, iam not trying to find angle between two lines. 

I want to find the angle between three points. that is angle between points B-A-C,B-A-D,B-A-D,C-A-B,,C-A-D,D-A-B,D-A-C. Next similarly for B,C and D as vertices.

Would be great if you can help me.

 


You do realize B-A is a line as well as A-C.  So the angle between these two lines is the angle B-A-C.

How to Find the Angle Between Two Vectors

 



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 11
(6,480 Views)

Can you tell me how to do that in labview??

 

 

Thanks
uday
0 Kudos
Message 5 of 11
(6,473 Views)

@udayakumar wrote:

Can you tell me how to do that in labview??

 

 


I think maybe you need a refresher course in elementary geometry?

 

[edit]  oops, maybe some trig will help, also...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 11
(6,463 Views)

Is this homework? (See also your seemingly related question)

 

You don't need IMAQ, just use plain geometry. Where exactly did you encounter problems?

 

(HINT: Again, use complex numbers to represent points and things will be much simpler. ;))

0 Kudos
Message 7 of 11
(6,457 Views)

If you can help, just do it. Otherwise please let others do.


@billko wrote:

I think maybe you need a refresher course in elementary geometry?

 

[edit]  oops, maybe some trig will help, also...


 

Thanks
uday
0 Kudos
Message 8 of 11
(6,455 Views)

Not my homework. i am learning labview, IMAQ operations and functions. 

Thanks
uday
0 Kudos
Message 9 of 11
(6,445 Views)

This does not really teach you much about the IMAQ function. You can learn that by simply supplying three points (or whatever the function expects).

 

Your problem currently seem to be the generation of a set of all possible point triplets, which is pure LabVIEW and has nothing to do with IMAQ. Each triplet gives you three possible angles. Work on this first.

Message 10 of 11
(6,436 Views)