LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read *.txt file and plot the XY graph?

Hi!i have a *.txt file like the following:

1.0,2.0
1.1,2.1
1.2,2.2

How to read this file and plot it in XY graph by Labview 7.0 ?
thanks a lot!
0 Kudos
Message 1 of 6
(3,437 Views)
you can use the read from spreadsheet.vi to read the pairs. the XY graph expects an array of clusters. each cluster has 2 elements 1. the x-coord 2. the y-coord....

bundle each element (x,y) and create an array of those pairs...

Dan

p.s. if you need more help email me privately...
0 Kudos
Message 2 of 6
(3,437 Views)
thanks for your help.but when i use the "read from spreadsheet.vi",i can i can only read one colume of the file,can you give me an example vi? thanks!
0 Kudos
Message 3 of 6
(3,437 Views)
the problem is that the read from spreadsheet.vi default delimiter is a tab, your file uses comma's change the delimiter to a comma and it should work for you...

Dan
0 Kudos
Message 4 of 6
(3,437 Views)
yeah,that's the problem,i appreciate it for your help!
0 Kudos
Message 5 of 6
(3,437 Views)
yeah,that's the problem,i appreciate it for your help!
0 Kudos
Message 6 of 6
(3,437 Views)