LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file I/O from XY graph

Solved!
Go to solution

A beginner's question: How to save the reading of my XY graph as the .txt format?

I know there are many ways such as .tdms.... but is there a simple and quick way to do this?

 

My current program only reads the data from DAQ which is the Y axis of teh XY graph.

 

Thanks,

 

Lei

 

0 Kudos
Message 1 of 8
(3,494 Views)
USe a "Write to spreadsheet".vi.
0 Kudos
Message 2 of 8
(3,489 Views)

Thanks. but when I connect the 2D data on the write to spreadsheet.vi, it shows" you have connected two terminals

with different types. the source is cluster of two elements, the sink is 2D data"

 

 

0 Kudos
Message 3 of 8
(3,480 Views)

I can't run your VI but i think that should work

 

Build array with the 2 components of your cluster

0 Kudos
Message 4 of 8
(3,468 Views)

Thanks for your help.

but the output is 1D array. I need it as 2D array. one is X axis and the other collum is Y axis so I can plot it using other program....

0 Kudos
Message 5 of 8
(3,463 Views)
Solution
Accepted by topic author shenl024

untitled.JPG

 

 

It looks like a 2-D to me.

0 Kudos
Message 6 of 8
(3,457 Views)

Thanks Dimitrios,

 

           I think your solution is very help. In terms of the file format, I can open it even it is not .txt. what kind of format is it? which software is the best to open it?

 

            Thanks again,

 

             Lei

 

0 Kudos
Message 7 of 8
(3,451 Views)

It depends what extension you give to the file. If you use a .xls then you will be able to open it in Excel.

 

If not an xls then open it in Notepad.

 

But if you realy want to save it as text then follow the other method (OPEN - WRITE (to a text file) - CLOSE)

But don't forget if you go that way to convert your data to text first. 

 

Have a look at the image below but you will find many examples to do that.

 

untitled.JPG

Message 8 of 8
(3,442 Views)