05-14-2009 12:25 AM
Hi all,
Here i struck up with XY Graph. The problem is i need to set the number of plots for XY graph before i am going to start to plot. I searched such kind of property. I couldn't...Is there any possibilities?????....
05-14-2009 12:48 AM
Hi,
I think you can achieve it by limiting the number of plots (data) that you wire to the XY graph.
05-14-2009 01:24 AM
05-14-2009 02:55 AM
Plot.visible? property is the one makes a plot visible/invisible through which you can control a plot displayed in the graph.
Wire the index of the plot you want to remove and wire visible as false.
Post back for queries
05-14-2009 10:10 AM - edited 05-14-2009 10:10 AM
Maybe you should attach a small example VI that explains what you are doing, because xy graphs can take a large variety of inputs. Each plot can take many data forms (array of cluster points, cluster of x and y arrays, complex data, etc.) so we need to know how your data actually looks like. For mutli plots you typically have an array or cluster array of such plots. Changing the number of plots simply involves changing the number of elements (=plots!) in that cluster array and LabVIEW has all the tools to do so. Keep the graph data in a shift register or action engine and dynamically add/remove plots as needed.
Can you explain what you perceive to be the problem?
(see also)
05-14-2009 11:07 PM
05-14-2009 11:49 PM
No there is not.
Just send only the lines that you want to plot to the XY graph, nothing else. If you want to plot a square, just send the 4 lines. If you want the hexagon, just send the 6 lines that define the hexagon. The XY graph just plots as few or as many plots as you need.
05-15-2009 12:21 AM
Hi
you just have to change the number of inputs. XY graph automatically updates itself.
Regards,
BOT