LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

about graph

Hello, How are you?
I'm new user of labview and i would like to know:
How to stack several curves on one graphs XY with LabView6.0?
Knowing that the measures are not simultaneously done.
In my case, I manage to draw the first curved. The second curved then
crushes the first.

Thank you.
Please answer me.

ERIC
0 Kudos
Message 1 of 3
(2,794 Views)
Hi,
to plot several curves on the same graph you have to wire an array to the graph node on the block diagram. In this array of data each element must represent the data corresponding to the single curve. For example
1. To plot several curves on waveform chart you have to connect it with 1D array, where each element coresponds to new point of some plot.
2. To plot several curves on waveform graph you have to connect it with 2D array, where each row coresponds to some plot.
3. To plot several curves on XYgraph you have to connect it with 1D array of clusters, where each cluster coresponds to some plot.

If you want to change the number of plots you have to use such functions as "Insert into array", "Delete from array", "Build array" and others from "Functions-
>Array" palette.

The example is attached.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(2,794 Views)
> How to stack several curves on one graphs XY with LabView6.0?
> Knowing that the measures are not simultaneously done.
> In my case, I manage to draw the first curved. The second curved then
> crushes the first.
>


Assuming that you want the graph to be plotted against the same scales,
you will mainly want to change the diagram. The datatype of a single
plot XY graph can be expanded to be an array of the original type.

It sounds like you want to keep several plots where you either replace a
plot or you rotate and replace a particular plot.

You might also want to look at the examples in examples/general/graphs.
Some of these have multiple plots on one graph.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,794 Views)