11-11-2010 05:17 AM
Hi
This might be a very easy thing to do but i can't seem to manage it. I am currently using Labview 8.5 and attempting to represent data acquired from a 3-axis force sensor as a single vector. The vector should begin at the origin with its magnitude and direction represented by the orientation and magnitude of the vector plotted. The inputs are X, Y and Z forces. Any help you could give me with this would be great.
Thanks
John
11-11-2010 05:57 AM
11-11-2010 06:35 AM
Hi,
Please see the attached image. It is simply a plot with 3 axes, there is one point to be plotted with cartesian co-ordinates (x,y,z) given by the data sampled. A line (or arrow preferably) connects the origin to the plotted point. Thanks for your help with this.
John
11-11-2010 08:01 AM
This thread has a worse case example that you can dumb-down.
Find the part of the code that plots the line.
In your case the line only needs two points the origin and the location where the vector ends.
THat example is based on the CW 3D graph that ships with LV.
I'll leave "creating the arrowhead" as a exercise for the reader.
Hint: Christian Altenbach posted an example that draws arrows in a 2D picture, search for that example.
Ben
11-11-2010 08:13 AM
If you can upgrade to 2009 (might not be a possibility) there is many new plots including quiver plots that would be of interest to you.