12-21-2011 04:25 PM
I'm working a project where I need to plot X & Y data to a polar plot. Actually, what I really want is to plot X-Y data on a compass rose, and show 'clock" position instead of angle headings...but I can fake that well enough for now...
Attached is my test vi for plotting to the polar plot. I've repalced the standard LV polar plot with a version available in one of the support forums that plots points instead of lines. Looks right to me..but no data plotted 😞 Any hints or direction?
Also, I ideally want to keep continually plotting data points - one set of coordinates after another. Any thoughts on the best way to do that? While loop maybe? I used to use labview prtty regularly, but it's been a while, so forgive me if these are easy questions. 🙂
Thanks!
12-21-2011 05:25 PM
Have you checked out the 2D compass plot? Would it work for you? It's at Controls-Modern-Graph-Compass Plot.
12-21-2011 05:29 PM
And yes, a while loop is a good place to start. Add a "Wait Until Next ms Multiple" inside the loop and wire 100 to the input. This will make the loop run oand the plot update only every 100 msec, usually sufficient for a user interface update. The Wait Until... vi is on the Functions pallet, under Programming-Timing.
12-21-2011 05:56 PM
Wow..I think they may be exactly what I want...but my office is stuck back at LV 7.1, and I can't seem to find that function for this version. Bummer.
I'll keep looking though. Thanks for the tips!
12-22-2011 09:30 AM
Updated vi attached for my polar plot test.I've replaced the modified "polar plot" vi with the original labview one. I can see data passing through everywhere, right to the plot itself...just don't see anything showing up. Is there something I'm misunderstanding about how to use the polar plot?
12-22-2011 10:01 AM
See if you can get Santa to bring your office LV 2011. Lots and lots of enhancements that are very helpful. And no, I'm not paid to say that! 😉
12-22-2011 10:02 AM
I'll send out an addendum to my Christmas List right away.
12-28-2011 11:05 AM
Hey IceMan,
It looks like you are passing only one set of values to the plot and the plot requires multiple points in order to graph the line between them. Here is the link to the information about the polar plot:
http://zone.ni.com/reference/en-XX/help/371361E-01/lvpict/polar_plot/
Hope This Helps,
Doug B