ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D to 3D plot

I have a chunk of code that plots points representing 3D vectors, some of which are connected with lines. The data for each point arrives in dozens of 3x1 arrays within a cluster (I just replaced them all with a constant in this attached file), and I switch between different views using the ring and array index values.

 

What is the easiest way to replace all of this with a single 3D plot?

 

 

0 Kudos
Message 1 of 6
(3,079 Views)

Hello Graham,

 

I have built you a VI that takes the data as described in your forum post and plots it on a 3D graph. The project and VI’s I have created are in 2010 SP1, let me know if you require a previous version.

 

 

Regards

Andrew George @ NI UK
0 Kudos
Message 2 of 6
(3,050 Views)

That's great Andy, thank you. I am using LV 2009.

 

 

0 Kudos
Message 3 of 6
(3,046 Views)

Hi Graham,

 

Here you go mate!

Regards

Andrew George @ NI UK
0 Kudos
Message 4 of 6
(3,043 Views)

Hi Andy,

 

I can see what you've done and it makes sense .. but I'm receiving data in real-time. So would be unable to use the for loop to re-package the arrays. I should have said that before! The attached is the plotting part of my 'offline' version (where I play with mathscript), it has some data which gives a better idea of what I'm trying to achieve. I'll have a go at modifying your code ..

 

 

Graham   

0 Kudos
Message 5 of 6
(3,037 Views)

Hi Graham,

 

I have changed the program so it updates during run time. Have a look an let me know what you think.

Regards

Andrew George @ NI UK
0 Kudos
Message 6 of 6
(3,006 Views)