LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine the number of plots on a waveform graph?

How do I determine the number of plots that have previously been plotted on a waveform graph? I am loading dynamic data from a file. If I convert to an array and size it and there is only one plot, I get the number of data points and I don't know how to tell the difference.
0 Kudos
Message 1 of 4
(3,182 Views)
Usually by reading the graph terminal or a local of it and determining the first or second dimension (not sure which at the moment) size of the resulting 2 dimensional array. If it is a 1 dimensional array you have either only one plot or an array of clusters each representing one plot. But as these data types are determined by compile time, there shouldn't be a problem with this causing ambiguity.

Rolf K
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(3,182 Views)
Sounds like you really want to know how many waveforms are in the dynamic data. In your "Convert from Dynamic Data" node, change from "1D array of scalars - automatic" to "1D array of waveform" and then use Array Size on that.
Message 3 of 4
(3,182 Views)
Thanks for deciphering my question properly! That is exactly what I needed. Much appreciated Roy.
0 Kudos
Message 4 of 4
(3,182 Views)