From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Graphs

We are copying 4 different graphs to a file, as 4 columns.
then we are reading this file as a spreadsheetfile. Then we
want to draw each of these in the same plot. when we do
this the program draws all plots as one graph(as one line)
Can anybody tell me how to do this, any respond will be
happily received


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
0 Kudos
Message 1 of 2
(2,571 Views)
> We are copying 4 different graphs to a file, as 4 columns.
> then we are reading this file as a spreadsheetfile. Then we
> want to draw each of these in the same plot. when we do
> this the program draws all plots as one graph(as one line)
> Can anybody tell me how to do this, any respond will be
> happily received
>

There are several datatypes supported for describing a multiplot
graph. Make sure that your data is one of those and you will
get multiple plots. In your case, a 2D array sounds reasonable.
If you have a spreadsheed, there are formatting functions to turn
the 2D array of strings into a 2D array of numerics interpretting
the string as hex, octal, decimal, etc.

Then wire the 2D array to the graph. If the you end up with too
many plots of only four p
oints, then either transpose the data on
the diagram, or popup on the graph and choose Transpose Data.

If the problem is simply that the plots are all the same color, use
the plot legend to change them. Grow the legend to show four entries,
rename and recolor your plots by clicking on the legend entries.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,571 Views)