LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot a cone using 3D control

I just can't seem to get the geometry right on the 3D surface plot. I am attempting to plot a cone shape use an x-component and y-component in a 360 degree circle at every z elevation (height). I either wind up with a plane (2D)surface or some obscure shape. What am I missing here? I have attached a sample vi.
 
I LV examples don't help me for this case.
0 Kudos
Message 1 of 8
(4,251 Views)

Whoops the above attachment was not the right one. It is an example from another post.

 

 The VI I want to attached is now correct.

0 Kudos
Message 2 of 8
(4,243 Views)

You are close.  The parametric equation for z is z(theta,r)=r

So you just need a 2D array of r.  Take a look at the attached.

0 Kudos
Message 3 of 8
(4,235 Views)

Oh that's news to me. I forgot to mention I am using LV 7.1 can you save the VI as a 7.1.

Thanks again.

0 Kudos
Message 4 of 8
(4,230 Views)

The VI was in 7.1 but here is another copy.  All I did was remove the bottom loop.  And instead in the top 2 loops take the i from the outer loop into the inner loop and then right out to the z input, allow autoindexing on both loops.  Basically a 2D array is created of the r you are using.

To find the equation I just googled parametric equation cone and found this pdf   So thanks University of Minnesota

http://www.math.umn.edu/~edman/math2374/solutions9.pdf

Message 5 of 8
(4,219 Views)

Evan,

Thanks, I was able to open your original file, I had to replace the Pic Control to get it to run. I'm not getting a cone shape are you? see the attached pic

Thanks for your help

0 Kudos
Message 6 of 8
(4,212 Views)
Here is what I get.
0 Kudos
Message 7 of 8
(4,205 Views)
OK I got it. My radius was set to zero ;^). It now looks like yours when there's a radius.
 
Thx Much.
0 Kudos
Message 8 of 8
(4,191 Views)