03-25-2013 02:04 PM
Please post the code in 2011 version.
03-25-2013 02:06 PM - edited 03-25-2013 02:07 PM
I do not have LabVIEW2011, only 2012 SP1.
I may have found out how to do 2011. See attached vi.
03-25-2013 02:09 PM
I will say that this seems like an overly difficult way to have to go for such a simple concept.
03-25-2013 02:31 PM
If you don't care about the file format you can save the data to an xml file as suggested before or you can also write to datalog or bin file.
03-26-2013 07:39 AM
What you are trying to do is a simple concept, but it is not "natively" supported by higher level LabVIEW functions because it is not a standard file format. Spreadsheet files have a well defined format, but you do not want to use that format, since it relies on end-of-line for field separation. You have two options, both straightforward, but both requiring you to use more low level functions. They are:
07-28-2017 01:49 AM - edited 07-28-2017 02:04 AM
I had i similar problem:
I communicate with an API and the API only accepts CSV files as commands. And now I wanted a linefeed within a cell.
I have a 2D String Array with a couple of line feeds within some cells in Labview and everything looks fine. But after saving to a file, the linefeeds destroy everything.
After a couple of hours i found out:
If you want to have a linefeed or a cariage return within a cell, put one " at the beginning of your cell (string) and one " at the end of your cell (string). Now excel and other editors will show the file correctly and my API accepts the file.
Also play a little with the "convert EOL" otption by rightclick the "Read from/Write to Text File.vi".
01-28-2019 12:36 PM - edited 01-28-2019 12:37 PM
Here is a code snip to clarify what has worked well for me: