06-28-2018 04:50 AM
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
06-28-2018 08:53 AM - edited 06-28-2018 09:06 AM
@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
06-28-2018 11:24 PM
Wow its looks awesome.....Please share the VI.
06-28-2018 11:37 PM
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.
06-29-2018 04:53 AM
@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°)*π
Is there a global maximum amplitude you'd expect?
06-29-2018 05:32 AM
But same data if I plot in polar plot the pattern is different. Please see.
06-29-2018 06:26 AM
when I plot spiral.csv to the built-in labview polar plot, I get this:
now what?
06-29-2018 06:50 AM
I don't know why it is showing in your case. Please find the enclosed snippet. i didn't do any data conversion.
06-29-2018 09:13 AM - edited 06-29-2018 09:15 AM
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.
06-29-2018 12:55 PM
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:
*(and besides that some more features like proper error handling etc.)