LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Graph / Multiple Plots

Hello everyone!

I'm trying to display multiple 1D arrays of data on a Waveform graph but I have a problem... my 1D arrays don't necessarily have the same size.  What this does is add trailling zeros to the shortest arrays to make it the same size as the longest array.  This is caused by the fact that you have to concatenate the 1D arrays into a 2D to feed it into the Waveform graph.  Is there a way around this? Should I use a different approach?
I hope my question is clear enough.

Thanks

Yohan
0 Kudos
Message 1 of 4
(3,568 Views)

If I understand you question correctly, you want to display the data of 3 different sizes to the same graph without having the fewer data points drop to zero, right?

You can use the "Build Cluster Array".

Message 2 of 4
(3,563 Views)

Here is an example of that.  It is merely an example, not to show best coding methods.  There may be better ways of doing this, but this should work for you.

 

Message Edited by JoeLabView on 06-13-2007 11:02 AM

Message 3 of 4
(3,563 Views)
Excellent! That's exactly what I was looking for.
Thanks!

Yohan
0 Kudos
Message 4 of 4
(3,549 Views)