06-22-2009 05:32 PM
06-22-2009 05:35 PM - edited 06-22-2009 05:38 PM
Hi manzano,
using the "write to text file" function???(??? Does it help to put more question marks in here?)
It's also a big difference if you want .txt or .xls files. They need very different aproaches - and txt files are much easier to handle...
There are also free online courses for LabView beginners in the academics section of NI's website...
06-22-2009 06:03 PM - edited 06-22-2009 06:03 PM
06-22-2009 06:26 PM
sorry for the extra ???.
how do i save the string to a txt file?
regards
06-22-2009 06:33 PM
i dont have delimited text. But i think is easier to save the string output data data to a txt. How do i do it? does "write to spreadsheet file" work too?
thanks
06-22-2009 07:04 PM
Where is your data coming from?
Is it in an array? Why is it in string format?
If it is in an array, you can use 'write to spreadsheet file' and specify whatever delimeter you want.
Then you can save to a file with a .txt extension.
Could you please explain what the format of the data is right now, or show some example data.
06-23-2009 11:43 AM
Hi Manzano,
There are some great examples on how to write a string to file within the LabVIEW Example Finder. Check out "Read-Write Text File.vi" found under fundamentals>>Strings.
Also, there are some examples on the community:
http://decibel.ni.com/content/docs/DOC-3844
http://decibel.ni.com/content/docs/DOC-3052
Cheers!
07-22-2012 02:12 PM
Hello!
I would like to save a bigger number of strings to .txt file. The .vi mentioned above"https://decibel.ni.com/content/docs/DOC-3052" saves only one string, and if I want to save a new one, it overwrites the one before.
How could I save more of them to one txt file?
Or would it be a better idea to save it to excel files? Thats another "mission impossible" 😄
Thanks for a help!
07-22-2012 03:31 PM
@VampireEmpire wrote:
Hello!
I would like to save a bigger number of strings to .txt file. The .vi mentioned above"https://decibel.ni.com/content/docs/DOC-3052" saves only one string, and if I want to save a new one, it overwrites the one before.
How could I save more of them to one txt file?
Or would it be a better idea to save it to excel files? Thats another "mission impossible" 😄
Thanks for a help!
Considering that you are having problems writing text files, I wouldn't venture into ActiveX territory to save actual Excel files.
07-22-2012 06:55 PM
If the file is already open, then writing more data will keep adding it to the end.
If the file has been closed, then when you reopen it, you will need to move the file position pointer to the end of the file before writing in order to append more strings. Look under File I/O >> Advanced File Functions for "Set File Position".
I don't recommend using Excel or ActiveX functions unless you are really trying to work with Excel spreadsheet files. So far you have only indicated that you want to work with text files, so stick with text file functions on the File I/O palette.