LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph with 2 plots

Hi,

i like to display 2 plots on a XY-Graph.
I can configure the second Y-Data, but i don't have a connection for the second Y-Data!!

What make i wrong?

Thank you

Sascha
0 Kudos
Message 1 of 7
(3,994 Views)
Hi Sascha

One plot in a XY-Graph is defined by a cluster which contains the x and y-values.

If you want several plots in a XY-Graph, build an array with this clusters and wire the array to the XY-Graph-terminal on the block diagram.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 7
(3,992 Views)
Becktho is right unless you are using the Express VIs.

If you are using the Build XY Express VI, you can just merge the two wires together and wire it in the same terminal. I believe that you have to have a matched set (2 X and 2 Y) in order to make it work, however. If you have two sets of Y that have the same X values, you can drop a merge signals and wire in the same X to both inputs. The result would get wired to the X terminal of the Express VI.

I hope that this helps,
Bob Young
0 Kudos
Message 3 of 7
(3,975 Views)
I don't know how it works if you use the express vi, but you always have to have the same number of values (x and y). Otherwise you have points that are not defined (or even just in 1D-space ;)).

If you have multiple plots, they needn't have the same number of points. So one plot could have 10 points and another plot may just have 2 points which is why I often use this to highlight some special points (e.g. maximum of a signal).

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 7
(3,968 Views)
this isn't working by me 😞
"build xy graph" only gives one signal to "xy graph", even when the signals are merged. I use Labview 7.0
0 Kudos
Message 5 of 7
(3,822 Views)

It will give you as many plots as you want. How are you using the merge signals. Below is the correct way for 2 separate plots.

Message Edited by Dennis Knutson on 02-16-2007 09:08 AM

Message 6 of 7
(3,817 Views)
Thanks a lot, my error was that I only put one X (I thought it was not necessary to put 2 because both X are the same in my case). Forgiev my stupid questions, i'm just a beginner in Labview! Smiley Sad
0 Kudos
Message 7 of 7
(3,794 Views)