From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to obtain plot list from xy graph

Hi!

I have a XY Graph and I wnat to get the number of Plots in that Graph. There is no Property for this.
Anyone knows how to do this?

Bya
hmann
0 Kudos
Message 1 of 3
(2,757 Views)
hi

i don't know, but try it with the "array size" function... a xy-graph is a 1d-array of clusters. in these clusters there are two 1d-array which represent x and y coords. the "array size" function should return the number of plots (clusters) of the xy-graph.... try it and let me know if it works..

ciao
0 Kudos
Message 2 of 3
(2,757 Views)
Hello!
you also can use Active Plot property in writing mode. When you active a plot that doesn't exist, the property node returns an error, so that you can know how many plots are in the graph.
crisR
Message 3 of 3
(2,757 Views)