LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D multiplot mesh

I have 5 different signals with x,y and z values. Want to show all signals in different colors in 3D multiplot mesh.ı use Labview 7.0, Thanks...
0 Kudos
Message 1 of 8
(4,159 Views)
I tried to make 3D surface multiplot but it works for only one signal for one run. The attachment is the vi plus data in txt. Thanks...
Download All
0 Kudos
Message 2 of 8
(4,159 Views)
Hey Orko,

First to address changing the color please refer to the following link.

Plotting Arrays of XYZ Data Using the 3D Surface Graph

This example demonstrates how to change the color of the plot. One thing to be aware of is that this example modifies the color of plot 1.

To plot more than one signal please refer to a second example.

Plotting Multiple 3D Plots on a Single 3D Graph (Windows)

This example uses the 3D Surface VI which calls the Plot3DSurface method not the P
lot3DMesh method but the code for Plot3DMesh would be very similar. There are two main things that are done in this example that you need to include in yours. First the example uses the Set Plots VI to add a certain number of plots to the graph. Second when making the call to Plot3DSurface (inside the 3D Surface VI) the method is passed a reference to a specific plot not a reference to the graph. You'll need to pass each Plot3DMesh method a reference to a different plot. Making these two changes to your program should allow you to have multiple plots with different colors.

I hope this helps!

Sarah Miracle
National Instruments
Message 3 of 8
(4,159 Views)
Sarah, thanks for your answer. Before the color problem, the main one is drawing two different signals on one graph. I don't use 3D surface.vi because of z matrix problem, I have 3 columns in txt file, x, y and z. In the example you offered me, they use only z matrix as input for 3d surface.vi. I use invoke mode for plot 3D mesh because I easily input x,y and z directly (in 3D surface.vi it reads z as 2D and do not draw exactly what I want, but invoke mode for plot 3d mesh makes it correctly.). In my multi_plot-3d_try.vi file (just for 2 signals), it draws what I want but each signal in one run. I attached my txt file and vi again, all suggestions are wellcome. Thanks again...
Orkun ERSOY
Hacettepe University
Download All
0 Kudos
Message 4 of 8
(4,159 Views)
Hey Orkun,

Although the example I attached doesn't use the plot3D mesh invoke node it does successfully plot two signals on one graph. I would suggest using this example as reference for modifying your program to plot more than one signal. The same techniques that allow more than one plot in this example will apply to your program. As I pointed out before there are two main things you'll need to modify. You'll need to create multiple plots and then make sure you're referencing different plots when using the invoke node to call Plot3DMesh.

I hope this helps!

Sarah Miracle
National Instruments
0 Kudos
Message 5 of 8
(4,159 Views)
Sarah, thanks again and sorry for distraction. I have problem with understanding the terms you use because of my inexperience. In the example you sent, they wire two signals to one 3D surface active x container and set plots.vi. I also wire my two invoke nodes to one active x container and setplots.vi. And make the number of plots as 2.Can you check my vi named as "for sarah"?
Download All
0 Kudos
Message 6 of 8
(4,159 Views)
Hey Orkun,

You're almost there. You've created two plots and now you just need to specify which plot when you use the Plot3DMesh method. Please see the modifications I've made to your program.

I hope this helps!

Sarah Miracle
National Instruments
0 Kudos
Message 7 of 8
(4,159 Views)
Ok.
Thanks a lot, Sarah. It works. But ı saw that there are so many things ı have to learn. Thanks again. Bye...
0 Kudos
Message 8 of 8
(4,159 Views)