07-01-2019 01:51 PM
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
07-01-2019 04:31 PM
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.
07-02-2019 10:15 AM
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?
07-03-2019 03:09 PM
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/