LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert 3D trajectories (x,y,z) to 2D(x,y) along its direction

Hello,

 

I've got many trajectories which consists of particles with their XYZ positions like on the picture below:

tracking.png

 

 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

 

0 Kudos
Message 1 of 16
(4,638 Views)

This is really a maths question rather than a LabVIEW question specifically. Why not google something like 'projection of vector on plane?'

0 Kudos
Message 2 of 16
(4,625 Views)

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.

0 Kudos
Message 3 of 16
(4,619 Views)

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.

0 Kudos
Message 4 of 16
(4,609 Views)

Actually i went and over-complicated it.

 

ground range=(x^2+y^2)^0.5

 

plot z vs ground range.

 

Simples...

0 Kudos
Message 5 of 16
(4,583 Views)

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.

0 Kudos
Message 6 of 16
(4,581 Views)

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.

0 Kudos
Message 7 of 16
(4,559 Views)

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

0 Kudos
Message 8 of 16
(4,539 Views)

@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.

0 Kudos
Message 9 of 16
(4,499 Views)

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.

0 Kudos
Message 10 of 16
(4,489 Views)