LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D mesh plot

Hi there

 

I want to create a mesh plot using 3D co-ordinates (x,y,z) obtained from motion capture devices. Now the problem is my data output from the motion capture device gives me all three co-ordinates x,y and z as a 1D array whereas if I want to plot any 3D graph in Labview it requires x and y as 1D array and z as 2D array. I am collecting all three co-ordinates in real time as a 1D array. Is there any way to solve this?

 

Thanks guys

 

Jolanta

0 Kudos
Message 1 of 4
(3,002 Views)

Hi Jolanta,

 

You can use the Build Array function to transform single points of data into a single element array equivalent. To transform a single element into a 2D Array, we can call the Build Array function twice.

 

Mesh..png


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 2 of 4
(2,985 Views)

Cheers

 

That sounds very convincing. I will try it out.

 

Thanks again

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

IUntitled.png

 

I tried using your method, but as you can see my 3 co-ordinates are function return and 1d array and single 32 bit return. So after building array of these three and giving it to index array the transformation is 2D and in your case its 1D. You think that affects the result?

 

thanks

0 Kudos
Message 4 of 4
(2,975 Views)