12-06-2015 11:25 AM
I' m having problems with the polar plot, what I want to do is plot some data from 0 to 180 degrees this data is plotted in points and all these points must be shown in the graph until 180 degrees then I want to erase this data to plot some new from 180 degrees to 0. Any ideas?
I've enclosed my vi
12-06-2015 11:52 AM
You are a beginner in LabVIEW, the VI which you show does not make too much sense. I recommend you to take some tutorials, and you will get more understanding about basics like data flow, data types, loops, etc...
Here you find resources:
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
12-06-2015 04:06 PM
I think the point that Blokk was making refers to your illogical use of the nested For loops. Think about what you want to do, what loops you want to make (and what loop variables you want). It's not a bad idea to write down, in text form (also sometimes called "pseudo-code") what you want to do ("Generate an array of 360 data points using such-and-such a function having this-and-that format. Plot them all on a so-and-so plot. Wait until the Cows come Home, and do it again until the Stop button is pushed"). Once you have it clearly (?!?) stated, you can begin to see what is repeated (multiple plots until Stop pressed, and within each plot, generating 360 points) and when various things (waiting until the Cows come home, generating a point, plotting something) need to occur.
Bob Schor
12-06-2015 05:32 PM
I didn't look at the code you posted, but here's something I did a while ago that just plots measurements every degree on a 180 polar plot. It uses a random number for the value plotted, but you could replace this with your own value. Feel free to modify and post a more efficient way of doign this. It's saved in LabVIEW 2014. By the way, it uses the OpenG Data Changed VI so you'll have to install that package if you haven't alredy.
12-06-2015 05:34 PM
A radar plot always starts with a clean slate (or whatever picture you wire from the left, which you don't!).
Some code comments (some things have been mentioned already):