LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number of Plot setting in XY Graph

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?????....Smiley Happy 

0 Kudos
Message 1 of 8
(5,192 Views)

Hi,

 

I think you can achieve it by limiting the number of plots (data) that you wire to the XY graph.

Into the pursuit...
Maverick
0 Kudos
Message 2 of 8
(5,185 Views)
I am not able to limit the number of plots.Dynamically i need to change it. Becoz Sometimes it may come 100 and another 50 and so on...
0 Kudos
Message 3 of 8
(5,169 Views)

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

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 4 of 8
(5,160 Views)

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)

Message Edited by altenbach on 05-14-2009 08:10 AM
0 Kudos
Message 5 of 8
(5,146 Views)
My reqiurement is, i need to plot some square, ploygon and lines.Each and every line in the structure should be as single plot.Finally for square, 4 plots and hexagon 6 plots and so on.Is there any option to set number of plots for XY graph before going to plot...Smiley Happy
0 Kudos
Message 6 of 8
(5,126 Views)

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.

0 Kudos
Message 7 of 8
(5,120 Views)

Hi

 

you just have to change the number of inputs. XY graph automatically updates itself.

 

Regards,

 

BOT

.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/
.....),---.(_(____)/.....
....// (..) ),----/....
...//____//......
..//____//......
.//____//......
..-------
0 Kudos
Message 8 of 8
(5,108 Views)