LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you add a 3rd dimension to a 2-D plot?

Sorry, I am new to LabVIEW. I have an intensity plot of a 2D square that I can control the starting location and the size of the square (as well as add gaussian noise through a standard deviation). I am trying to somehow make a control to convert this 2-D data into a 3-D object that I have control over the z-size within the plot. There's probably easier ways to do this, but I am trying to do it with what I have for now. In addition, I would then like to add a second object (in this case a sphere) and display them both in the same 3-D plot and do a transform where I have the sphere rotate around the cube. My subVI that is in the image simply generates the circle with the lower limit being the x-coordinate, the lower limit 2 being the y-coordinate, the standard deviation controlling noise for both the square and the background, and the square limit controls the height and width. Currently, all I am able to do is plot a 3-D continuous square block in the z direction.

0 Kudos
Message 1 of 2
(2,139 Views)

Hi slewis61,

 

From your description, it sounds like this forum may help with what you are looking to do.

 http://forums.ni.com/t5/LabVIEW/X-Y-Z-plotting-on-intensity-chart/td-p/2416698

 

As far as adding a sphere to your plot and having it rotate around the square, I highly recommend searching "3D" in the LabVIEW examples located under the "Help" drop down menu and scroll down to find the "3D Model of Solar System.vi." I believe this is similar to what you are trying to do with the movement of the object as well as adding multiple objects to a single display.

 

Using the 3D Picture Control

http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/3d_pic_control/

 

Hope this helps!

 

Regards,

 

Jared T.

 

Applications Engineer

National Instruments

0 Kudos
Message 2 of 2
(2,087 Views)