09-11-2014 06:32 AM
I have already tried that method. But here is a screenshot of my latest attempt.
This is quite frustrating.
09-11-2014 07:10 AM
HI,
You are clustering two 1D arrays of numeric values. Polar Plot.vi requires a 1D array of clusters of 2 scalar values. Have a look at the attached example again. The first FOR loop creates two 1D arrays, like you have. To be able to plot those, you need to put the elements of those arrays one by one into a cluster. Then you can create an array of those clusters to plot multiple points.
Cheers,
Jos
09-11-2014 08:14 AM
Thank you Jos.
It is working now.
The direction is not correct but I'm trying to transpose the array to get it pointing in the right direction.
09-11-2014 08:35 AM
@Red43 wrote:
Hey,
I use a direct stream from a CAN interface. The code I posted was via my PC which cannot be connected to the CAN device.
It would be very helpful if you could help me with the conversion from where I use X and Y co-ordinates to polar plots.
In the figure, it is seen that I convert distance and angle to cartesian co-ordinates. Is it possible to use that data to plot in polar plot directly?
XY to polar is a mathematical equation. http://www.mathsisfun.com/polar-cartesian-coordinates.html
09-11-2014 08:40 AM
I convert from polar to cartesian for the XY plots.
The issue was with data types.
It's solved now.
09-11-2014 08:48 AM
@Red43 wrote:
I convert from polar to cartesian for the XY plots.
The issue was with data types.
It's solved now.
Data types?