LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Polar plot from array indices

I am having a 2d array with some values zero and others with complex numbers.

Suppose that the Rows denots "r" and columns "theta". I need to plot a polar plot for it. It should be like this, for example the 2D array have a complex value at index(2,1), then a point in the polar plot will be on an angle that is 2 times T and at a distance 1 times R. where T =2 and R=1.2. So on for all the values in the 2D array.

 

i.e create a polar plot with points from the index of 2d array. How is it possible??

 

After plotting the polar plot, i need to create a surface above the polar grid which is at a distance that is equal to the corresponding values in the 2d array.

See the attched VI

 

Thankss

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 7
(4,232 Views)
I got two 2d arrays of each r and theta values. How can i plot th epolar grpah for it?
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 7
(4,196 Views)
There is a polar plot VI in LabVIEW. Functions -> Graphics & Sound -> Picture Plots -> Polar Plot. Place it on your block diagram. A picture indicator is automatically created to display the plot. Read the Help on how to use.
0 Kudos
Message 3 of 7
(4,194 Views)
but the problem is clsh between the  2d array and cluster of 2 elements. I tried to convert from array to clluster/.. it didnt work....
Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 7
(4,191 Views)
A direct conversion won't work. You have to do a little more work, which is to convert your 2D array of complex values to a 1D array of clusters of 2 values (r, and theta). A simply for-loop will do the trick. Try it. It's not that hard.
0 Kudos
Message 5 of 7
(4,189 Views)

iHello

I tried  to put them in a for loop and bundle.. but didnt work.. can u suggest soemthin?

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 7
(4,159 Views)
What did you try? Please post/upload your code.
0 Kudos
Message 7 of 7
(4,128 Views)