# LabVIEW

cancel
Showing results for
Did you mean:

## Re: 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

Message 11 of 23
(1,100 Views)

## Re: Custom Polar Plot

@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

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"

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

Message 12 of 23
(1,090 Views)

## Re: Custom Polar Plot

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

Message 13 of 23
(1,078 Views)

## Re: Custom Polar Plot

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.

Message 14 of 23
(1,076 Views)

## Re: Custom Polar Plot

@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

Is there a global maximum amplitude you'd expect?

Message 15 of 23
(1,069 Views)

## Re: Custom Polar Plot

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

Message 16 of 23
(1,068 Views)

## Re: Custom Polar Plot

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

now what?

Message 17 of 23
(1,065 Views)

## Re: Custom Polar Plot

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

Message 18 of 23
(1,061 Views)

## Re: Custom Polar Plot

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.

Message 19 of 23
(1,046 Views)

## Re: Custom Polar Plot

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:

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

Message 20 of 23
(1,039 Views)