LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I plot two sets of data points in 3d graph?

I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?
0 Kudos
Message 1 of 5
(2,947 Views)

What is your LabVIEW version? (things are a bit different in 8.6).

 

Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.

 

You define all the plots (color, style) via the properties dialog.

 

Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get. 😉

Message Edited by altenbach on 04-23-2009 01:11 PM
Message 2 of 5
(2,937 Views)
Thanks but unfortunately(?), I am using 8.6. Would this still be possible?
0 Kudos
Message 3 of 5
(2,930 Views)

Yes, it's about the same just the icons have changed.

 

Just try it! 🙂 

 

(8.6 uses native 3D graphs while older versions were activex based).

Message 4 of 5
(2,918 Views)

I still need to verify a few more things but looks like it works. Thanks!

 

While I work with your example, I realized the cursor does not show the exact values of the point data in your 3d graph. The cursors were set at "Snap To Plot" and "Plot-1" (which should be the data point plot) in the Properties. The same thing happened in my vi with different set of data too.

 

Shouldn't the cursor show the values of the raw data points when I snap to plot? It is not a big deal as long as the data points are used for fitting the points although the cursor can not pick the exact data points and show some values close to the raw data. But I was not sure whether this was caused by other errors.

Please let me know if you know why.

 

Thanks again.

0 Kudos
Message 5 of 5
(2,887 Views)