Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Force vector plot

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

0 Kudos
Message 1 of 5
(5,034 Views)

Can you show an example how it should look like?

 

Is this a 3D graph?

0 Kudos
Message 2 of 5
(5,027 Views)

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

0 Kudos
Message 3 of 5
(5,018 Views)

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.

 

Spoiler

Hint: Christian Altenbach posted an example that draws arrows in a 2D picture, search for that example.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(5,008 Views)

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.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(5,003 Views)