LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I put 2 XY graphs on the same graph

Hello,
 
I am
0 Kudos
Message 1 of 5
(3,526 Views)

Hello,

Sorry, I posted the message before I finished.

I have created 2 XY graphs using the build XY graph function.  I want to put both of these on the same graph.  I have tried to make an array of the 2 graphs, but the XY graph doesn't accept 2D data.  I got everything as 1D array of 2 elements, but they still wouldn't connect.

I am not very familiar with clusters and arrays, so I am probably doing something wrong. 

Thanks for the help.

 

Thanks

ckeller

0 Kudos
Message 2 of 5
(3,523 Views)
Go to Labview Help and look at "waveform, graphs"  It will have links to waveform graph and XY graph examples.  Browse those and see which matches most closely to the way you have your data.  That should show you the right combination of arrays and bundle functions to get your XY graph.
0 Kudos
Message 3 of 5
(3,511 Views)

Hello USChris,

Multiple x-y plots are added to an XYGraph component by creating an array of x-y arrays pairs that have been bundled into a cluster.  Use the Bundle.vi to combine X and Y data arrays into a cluster.  (Use one Bundle.vi for each X Y data array pair).  On the array pallet, use the Build Array.vi to create an array of these XY data clusters.  This can be wired directly into an XYGraph component.  (see picture)

-cb

0 Kudos
Message 4 of 5
(3,509 Views)
Hello,

    Thanks for the help.  This works.

USChris
0 Kudos
Message 5 of 5
(3,489 Views)