LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot multi curves in one window

Is there anyone who can tell me how to plot multi-curves in one window using LabVIEW? The sample chart is attached. I have LabVIEW 7.1. If you think it is impossible in LabVIEW7.1, can LabVIEW 8.0 do the job?
Thanks for your help in advance.
Jane
0 Kudos
Message 1 of 4
(3,205 Views)
Don't confuse a WINDOW with a GRAPH or a PLOT.

A WINDOW is the rectangular thing with a title bar you drag around the screen.

A GRAPH is a LABVIEW indcator with X and Y scales, containing one or more PLOTs.

A PLOT is a set of related data points.

Your example GRAPH has a green PLOT, a brownish-red PLOT and two black PLOTs.

The help for a GRAPH indicator will tell you how to do multi-plot graphs.

It differs a bit depending on whether you want an X-Y graph, or a waveform graph.

There are several different ways, but the most basic graph accepts a bundle { X0, dX, Y[] }

That will plot the Y[] data and make an X-axis starting at X0, and increasing by dX on every point.

If you pass it an array of those bundles, you will get several plots on one graph.

There are other ways too.

Message Edited by CoastalMaineBird on 11-10-2005 08:19 PM

Message Edited by CoastalMaineBird on 11-10-2005 08:20 PM

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 4
(3,198 Views)

Hi Jane,

CoastanMaineBird is right about the difference between a "plot", a "Graph" and a "window".

It seems that what you want is a either a Graph or a Chart with multiple plots. It's quite simple to do either of these. As said before, refer to the Context Help (Ctrl + H) from the block diagram terminal of the Chart or Graph to see how to add multiple plots. Here's a screenshot of how you would do it with a Chart and a Graph:



If you want to use different Y-scales for each plot, you need to create multiple Y-scales and then specify which plot uses which Y-scale:



I hope that this is explanation enough to get you started - otherwise, please let me know.

Have fun!

Message Edited by Philip C. on 11-12-2005 03:46 PM

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Download All
Message 3 of 4
(3,172 Views)

Thank you all! I've tried what you said, it works very well. Thank you so much.

Jane

0 Kudos
Message 4 of 4
(3,160 Views)