05-03-2010 09:06 AM
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
Solved! Go to Solution.
05-03-2010 09:16 AM
05-03-2010 09:25 AM
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"
05-03-2010 09:42 AM
I can't run your VI but i think that should work
Build array with the 2 components of your cluster
05-03-2010 09:48 AM
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....
05-03-2010 10:13 AM
It looks like a 2-D to me.
05-03-2010 10:23 AM
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
05-03-2010 10:35 AM
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.