LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Uneven 2D XY Graph

Solved!
Go to solution

I had a problem with graphing a bunch of X,Ypoints. I had multiple 2D arrays. Each 2D array had different number of rows. I came up with this solution (see attached

vis, both 2010 and 2009).

Please let me know if there is a better way. I would have like all of the zeros to go to NaN.

Best option would be to create a 3D array with different size 2D arrays.

CLD Certified 2014
Download All
0 Kudos
Message 1 of 3
(2,735 Views)
Solution
Accepted by topic author ADrexelDragon

Hi ADrexelDragon,

 

While it is possible to create a 3D array from the multiple 2D arrays, a better way to send data to the XY Graph would be to send an array of clusters.  To do this you would take your 1D array of X points and 1D array of Y points and use the bundle function to create a cluster.  You would create as many clusters as needed and then the final step will be the Build Array function to put the clusters into a single array.  See the bottom portion of the block diagram on the attached VI (LV2010 format).

 

Anthony F.

Anthony F.
Staff Software Engineer
National Instruments
Message 2 of 3
(2,715 Views)

I knew there was a simpler solution. Thank you!

CLD Certified 2014
0 Kudos
Message 3 of 3
(2,709 Views)