09-03-2015 01:58 AM
Hello,
I've got many trajectories which consists of particles with their XYZ positions like on the picture below:
Now, I would like to convert each trajectory to 2D (X,Y) along its direction and have got it as I called "flat". Each trajectory is in another direction so is there a chance do convert it like this: first trajectory converted along itself, second trajectory converted along itself e.t.c. Is there a chance to make it in LabView? Please, help me
09-03-2015 02:40 AM
This is really a maths question rather than a LabVIEW question specifically. Why not google something like 'projection of vector on plane?'
09-03-2015 02:45 AM
Thanks for answer.
I'm not good in this issue and sometimes I don't know even how to find it in google. I also thought that problem could be solved in LabView.
09-03-2015 03:07 AM
Well you never know- someone may yet come along with the answer. I don't know of any 'out of the box' function that does it- if you are using any extra modules they are worth mentioning as they may contain something.
09-03-2015 11:33 AM
Actually i went and over-complicated it.
ground range=(x^2+y^2)^0.5
plot z vs ground range.
Simples...
09-03-2015 11:35 AM
Oh, they don't all start at the origin, so it's:
ground range=((x-x0)^2+(y-y0)^2)^0.5
where x0, y0 are the coordinates of the first point.
09-03-2015 05:36 PM
Why a new message thread?
You already asked about this here http://forums.ni.com/t5/LabVIEW/Angle-measurments-from-XYZ-positions/m-p/3186309#M922485
and even marked one of the messages as the solution.
Please keep discussions in one thread.
09-03-2015 09:12 PM
In my Solution to your previous post, I believe I showed you how do get the projection onto the X-Z plane. I tried to do this in such a way that you'd be able to generalize this to a projection onto the X-Y or Y-Z plane, if you needed. Go back and read what I wrote, and just substitute X-Y for X-Z. If you have to do an Origin Offset, it also works the same way.
Bob Schor
09-04-2015 05:47 AM
@ToeCutter
I know that You took this equation as a distance between two points on 2D plane but it looks so simple when we plot this with Z cooordinate. We don't know how to check if it's rght.
09-04-2015 06:32 AM
It's so simple, I can't see there's room for error- plus if it's wrong it will get torn down by another poster.
Simple tests:
Create your own trajectory in the x-z plane. Transform, compare graph with range-z - they should be identical.
Create one in y-z. Same game.
To echo a previous post- please don't create multiple threads on the same subject as it wastes time for us, and we do this for free.