LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d surface plot

Solved!
Go to solution

Hi,

 

I want to make a 3D-surface plot with an x,y,z-vector. I attached my VI and my data txt-file, if you want to take a look.  In the surface plot, you can see 2 trapezoids. The lines connecting the upper points are not correct, they should connect to eachother, so you can see the 2 trapezoids clearly. A whole bunch of these trapezoid will follow eachother up. Can someone help me, so it connects the dots right or is there a better way to create a 3D surface plot with an x,y,z vector? I tried rearranging the points already, didn't work, or I missed a combination. Smiley Sad So the points represents the outer surface.

 

Thanks in advance,

 

KF_

Download All
0 Kudos
Message 1 of 9
(4,387 Views)

Hi KF_

 

I really don't know if this helps, but I manipulated the data file that you attached so that each trapezium is represented with 5 points (essentially the first point is copied in the end of the points of the trapezium to complete the trapezium.)

 

0 Kudos
Message 2 of 9
(4,367 Views)

Hello NitinD,

 

Thanks for your reply, it is a nice solution, but for this I would need to adjust the VI that generates those points quite a bit. I prefer not to do that, but if there is no other solution, I will do this. By the way, the plot doesn't have to be with lines, I prefer a 3D surface around the points, but that doesn't seem to work.

 

KF_

0 Kudos
Message 3 of 9
(4,350 Views)

please post in LV 8.5 if you want me to take a look.

 

otherwise look here for a simple example of how to draw a surface.

 

 

Ben

Message Edited by Ben on 09-15-2009 09:35 AM
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 9
(4,329 Views)

hey Ben,

 

 

here it is in 8.5

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 9
(4,326 Views)

Ben,

 

Thanks for replying, I converted it to Labview 8.5, hopefully it works. You can find the text file with the input in my first post.

 

 

Regards KF_

Message Edited by KF_ on 09-15-2009 10:06 AM
0 Kudos
Message 6 of 9
(4,316 Views)
Solution
Accepted by topic author KF_

Do you want a sepearte surface for each slice?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 9
(4,280 Views)

Hi Ben,

 

 

This is just what i can use, I am trying to figure out what you exactly did, i'm pretty much a novice. Is the arrangement of the 4 points per slice fixed or can it vary?

 

Thanks alot,

 

KF_ 

 

Message Edited by KF_ on 09-16-2009 11:12 AM
0 Kudos
Message 8 of 9
(4,268 Views)

KF_ wrote:

Hi Ben,

 

 

This is just what i can use, I am trying to figure out what you exactly did, i'm pretty much a novice. Is the arrangement of the 4 points per slice fixed or can it vary?

 

Thanks alot,

 

KF_ 

 


Yes you can have more than four but that code was hard-coded to work with theh data you provided. Slice-and dice as you like. See here.

 

 

Ben

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