LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help my with XY Graph

Hello.
I need to make a XY graph but i don't know how to connect the graph with the rest of the program.

There should be two column which are imported from two other files. One will be the X values , and the other will be the Y values.
I've tried a lot of different ways to show the plot, but ewerytking is still not working.

So please help me ang i will be grateful.
0 Kudos
Message 1 of 5
(3,526 Views)
 Hello marek12 attached is an quick example of an xy graph. For a mor complex way go to help click on find examples and search for xy graphs.
0 Kudos
Message 2 of 5
(3,518 Views)
Currently, you read your data into an array of strings. For graphing, you need a numeric datatype. WIre an empty 1D DBL  (instead of a 1D array of strings) to the type input of "spreadsheet string to array", then bundle the two 1D arrays.
 
Of course easier would be to use "read from spreadheet file", it will give you numeric datatype directly by default. Since you seem to have a single column instead of a single row in your file, you possibly need to transpose (see the boolean). Attached is a simple example (image), just wire it all up. 🙂
 

Message Edited by altenbach on 01-29-2007 05:35 PM

0 Kudos
Message 3 of 5
(3,516 Views)
Thanks for help !!
I used the option which Altenbach shows me.

But I've got one more questions.
Now there are two files with one column of data.

How to change the program to use only one file but with two columns with data. One will be X, and the other will be Y ??
0 Kudos
Message 4 of 5
(3,489 Views)
In this particular case, you would just read it as a 2D array, then slice out the first to columns, and bundle them as before.
 

 
There are all very basic questions and there are many other ways to do this. Have a look at all the examples that ship with LabVIEW.
 
XY graphs take many other arrangments of data.

Message Edited by altenbach on 01-30-2007 09:31 AM

0 Kudos
Message 5 of 5
(3,486 Views)