11-08-2012 07:03 AM
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???
11-08-2012 07:53 AM
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.
11-08-2012 09:41 AM
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.
11-08-2012 09:55 AM
@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
11-08-2012 10:07 AM
Can you tell me how to do that in labview??
11-08-2012 10:16 AM - edited 11-08-2012 10:18 AM
@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...
11-08-2012 10:20 AM - edited 11-08-2012 10:24 AM
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. ;))
11-08-2012 10:22 AM
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...
11-08-2012 10:25 AM
Not my homework. i am learning labview, IMAQ operations and functions.
11-08-2012 10:31 AM
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.