LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot x,y,z values to a 3D surface graph

Hello All,

 

I have 10 sets of x, y, z values that I want to plot into a 3-dimensional surface plot.  The following are the x,y,z values that should yield 10 points and these are the 10 points I want to connect to create a 3D surface.  Can anyone show/tell me what the easiest and simplest way to achieve this?  Any help is much appreciated - Thanks!

 

Data points (x, y, z)

Data point #1 = (-2.49472, -3.1003, -1.51973)

Data point #2 = (-0.53762, -1.86876, -1.18759)

Data point #3 = (-2.15848, -0.21903, 0.085261)

Data point #4 = (-0.5627, 0.113979, -0.88127)

Data point #5 = (-0.20712, -0.30988, 0.507041)

Data point #6 = (1.09717, -0.50019, 0.851337)

Data point #7 = (-0.19076, 1.6977, -0.2325)

Data point #8 = (3.30511, 0.495494, 0.231649)

Data point #9 = (-0.09863, 2.08208, 0.979535)

Data point #10 = (1.84774, 1.61482, 1.16626)

 

-noviceLabVIEWuser

0 Kudos
Message 1 of 5
(3,710 Views)

Hi noviceLabVIEWuser,

 

There's an example of how to do this in the LabVIEW Help, here: http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/plot_x_y_x_3dgraph/.

 

There are a few different 3D surface plots, but it looks like this has the easiest format for the data you're working with.  Here's what I put together:

 

3D surface BD

 

3D Surface FP

 

 

Morgan S

Applications Engineer

National Instruments

Message 2 of 5
(3,654 Views)

Very Nice!  Thanks MorganS!  So how can I modify this VI to add another set of surface data points so that the VI displays 2 different surfaces (and different colors) in one 3D plot?

 

Thanks again!

 

-noviceLabVIEWuser

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

Good question!  Looks like you can add plots like this:

 

3d surface 2 plots

 

In this case, they're the same color, but poke around in the other properties and methods for this control, and I bet you'll find a way to change the color and lots of other things.

 

Morgan S

Applications Engineer

National Instruments

Message 4 of 5
(3,642 Views)

Hi,

 

I am using LabVIEW 2019 (64 bit) .I am trying to plot 3 points in 3Dsurface graph. I couldnot follow the way u said, I couldnot find it in 64bit. is there any other way?

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