LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Polar Plot

attached converted to labview 2010

 

 I think it's quicker to re-write than to modify  "PG angle labels.vi", as it does contain protected vi, which itself is very likely to contain a .dll

 

0.PNG

 

0 Kudos
Message 11 of 25
(3,099 Views)

@Sonti_11532 wrote:

You have drawn the polar plot on XY graph. But how to create the auto circles and cross lines as per polar plot?


circle_lv2010 could be extended to do this

XY graph polar-plot.PNG

 

 

 

it's a couple of circles and lines (actually, several 1d arrays of x,y points arranged in a certain way)

put together with "build cluster array"

1.PNG

 

the XY Graph offers us a convenient  way of labeling certain points within the displayed image using annotations

 

 

 

 

 

 

 

 

 

0 Kudos
Message 12 of 25
(3,089 Views)

Wow its looks awesome.....Please share the VI.

0 Kudos
Message 13 of 25
(3,077 Views)

Basically XY graph is showing the Positive and negative scales. But i have a radiation pattern data with angle and amplitude. Most of the amplitude values are negative values. How XY plot will take the angle (Phase) reference which is 0-360. Please find the enclosed CSV file for data and plot.

0 Kudos
Message 14 of 25
(3,075 Views)

 


@Sonti_11532 wrote:

Basically XY graph is showing the Positive and negative scales. But i have a radiation pattern data with angle and amplitude. Most of the amplitude values are negative values. How XY plot will take the angle (Phase) reference which is 0-360. Please find the enclosed CSV file for data and plot.


as already shown in circle_lv210.vi, you have to do a coordinate transform before feeding the data into the XY Graph

 

your data is in a polar form, which is convenient, as there is a polar to complex function:

http://zone.ni.com/reference/de-XX/help/371361P-0113/glang/polar_to_complex/

z = r*cos(theta) + i r*sin(theta)

 

r ... amplitude

theta ... angle in radians (so you have to transform your degrees to radians via (x/180°)*π

 

1.PNG


0.PNG

 

Is there a global maximum amplitude you'd expect?

 

 

0 Kudos
Message 15 of 25
(3,068 Views)

But same data if I plot in polar plot the pattern is different. Please see.

 

data.PNG

0 Kudos
Message 16 of 25
(3,069 Views)

when I plot spiral.csv to the built-in labview polar plot, I get this:

2.PNG

 

now what?

0 Kudos
Message 17 of 25
(3,066 Views)

I don't know why it is showing in your case. Please find the enclosed snippet. i didn't do any data conversion.

Download All
0 Kudos
Message 18 of 25
(3,062 Views)

okay, this has something to do with the Spiral.csv ‏9 KB file itself -

I assume this is some kind of text encoding error.

I'm located in Europe right now

 

Could you do the following:

spawn an numeric 2d array indicator in polar snippet.png ‏24 KB and run the .vi

now, this 2d Array should contain all magnitude;angle values

 

then "right-click..data operations...make current value default".

Save the .vi and re-upload, so I can have a look again.

 

0 Kudos
Message 19 of 25
(3,047 Views)

Nevermind, I re-downloaded the .csv, used your snippet directly

and I get the same plot for the built-in polar plot.

 

Now, my intention was not to re-write the whole polar plot api, but rather one of the sub-vis, namely PG_labels.vi

But indeed, my demo would need some extra scaling*   to render the same picture on a XY Graph in comparison to the 2d picture plot:

 

2d-plot_versus_XYGraph.PNG

 

*(and besides that some more features like proper error handling etc.)

 

0 Kudos
Message 20 of 25
(3,040 Views)