LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Plots on single graph

I am planning to plot multiple curves on a graph. The values on X axis remains the same bbut on Y axis it changes. Please let me know how to do it

Thanks,
Amar
0 Kudos
Message 1 of 3
(3,104 Views)
If the x-values are equally spaced, just use a waveform graph. Merge all the single traced into a 2D array using "built array".

At this point, it would be good to look at a few examples shipped with LabVIEW. Go to help...find examples.

In the Example browser, go to "Fundamentals...Graph and Charts"

I would recommend you look at "Waveform Graph.vi" (especially the wiring for "(Y) Multi Plot 1" on that diagram).

If your x-values are not spaced equally, look at XY-Graph.vi in the same section. Just follow the example.
0 Kudos
Message 2 of 3
(3,104 Views)
Dear Amar -

If you want to plot multiple arrays into one single waveform graph, the only thing you need to do is to send the multiple arrays to a Build Array function and send that new created array to the graph. Right click on the Build Array function and make sure that the Concatenate Inputs option is NOT selected.

Hope this helps. Have a great day.

Sylvia Vences
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,104 Views)