LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graphs in labview

I wish to draw a curve on a graph.Then by relaunching the program with
another parameters, I would like to draw another curve on the same
graph but without crushing the first curved.
I don't know how to make?

Thank you.
0 Kudos
Message 1 of 3
(2,704 Views)
eric wrote in message <79aae7a2.0204220634.73858a13@posting.google.com>...
>I wish to draw a curve on a graph.Then by relaunching the program with
>another parameters, I would like to draw another curve on the same
>graph but without crushing the first curved.
>I don't know how to make?
>
>Thank you.

Here is a simplistic solution copied from my Labview User Manual (Version
5):

I assume that you have access to the waveform array of the first graph: call
this Waveform1. Generate Waveform2, and wire Waveform1 and Waveform2 to a
Build Array function (Functions>>Array). This will construct a 2D Array.
Wire the output of the Build Array to a Waveform Graph function.

I think that this solution also assumes that the y axis has the same scale
for both plots. If they hav
e different scales, see the question concerning
multi-plots with different y-axis in the Labview FAQ site at:

http://www.icon-tech.com.au/thelabviewfaq.html

The answer will show how to re-scale the other y-axis.

Steve Otteson





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 2 of 3
(2,704 Views)
> I wish to draw a curve on a graph.Then by relaunching the program with
> another parameters, I would like to draw another curve on the same
> graph but without crushing the first curved.
> I don't know how to make?
>


The datatype for a multiplot graph is different from that of a single
plot graph. Examples/general/graphs contains the graph examples. One
of them, I believe called gengraph.llb contains examples that show the
types that can be wired to an XY graph and a waveform graph.

You will want to collect your plots into an array and keep the last few
elements for plotting.

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