LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making a 3D plot from two cameras that are already collecting and plotting 2D data

Hello! I am having trouble creating a 3D plot of position in 3 directions (X,Y,Z). I am already able to plot the X,Z direction and the Y,Z direction on a 2D plot, but need help combining both sets of that data to make the XYZ plot. Right now I am able to plot the 2D graphs in real time, so it would be great if I could to 3D in real time too. See my attached labview screenshot. The attached code already works very well. Any help would be greatly appreciated!

 

Ryan

0 Kudos
Message 1 of 4
(2,313 Views)

Hi rbailis99,

 

3D plots in LabVIEW may not give you the speed you want if you're trying to view something in real-time. 3D plots tend to be pretty resource-intensive, so if you're planning on writing data rapidly/repeatedly to a 3D plot, you'll slow your code down quite a bit.

Warnings aside, the easiest way to create a 3D plot is to add a 3D Scatter control to your front panel, then pass your X, Y, and Z data into the Plot Helper.vi that is automatically created on your block diagram.

Example_VI_BD.png

Jorr-El
Systems Engineer
Testeract: Automated Test Specialists
Message 2 of 4
(2,292 Views)

Hi! This was very helpful. Thanks for your advice. One question though. I would like the color of the plot to change with time or index, not the x coordinate as it currently does. Is there an easy way to make the scatter plot do this? 

0 Kudos
Message 3 of 4
(2,266 Views)

Hi! Have you taken a look at this article?

 

"Customizing Graphs and Charts"

https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/customizing_graphs_and_charts/

Carolynn V.
Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,248 Views)