01-29-2020 11:14 AM
2019 demo
01-29-2020 11:31 AM - edited 01-29-2020 11:33 AM
Okay I am going to attach two versions of this VI.
The VI that passes the reference is the one you should use.
01-29-2020 12:25 PM
Unfortunately, "Write Deliminated Spreadsheet" Doesn't work as it doesn't put the titles in and it only writes the first two measurements in and then stops for some reason. Here is what I got for output. It was supposed to list many rows but there's only one and the two titles didn't get written either. Might just forgo the titles for now.
01-29-2020 12:34 PM
You are doing it wrong!
I do this all the time here's some ideas...
01-29-2020 12:45 PM
I have tried that before but it didn't work properly. Is there a way to convert strings to signals? I tried using Decimal String To Number and it compiled alright but never wrote the strings to the spreadsheet.
01-29-2020 02:19 PM
Here is an example of what I do:
I open the file and write my headers basically at the same time...
Notice I use the Open or create file primitive then pass the reference to write to text file primitive to write the headers.
01-29-2020 02:48 PM
That will put them all in different columns of the excel file? I just got word that I have to do this in csv and not excel so now I have to figure that out instead.
01-29-2020 02:57 PM
This creates a TAB delimited file, if you want comma delimited (csv) then swap the Tab constant for a comma.
But yes this will put each header in a column
BTW: that's what the "delimiter" does, when Excel or any modern spreadsheet program opens the file it uses the delimiter to make columns.
01-29-2020 06:04 PM
Thank you, I didn't know that's how it worked, thanks for clearing it up and for the examples.
01-30-2020 09:58 AM
BTW: I prefer TAB delimited because it puts the data in columns even using Notepad to view the data file. That makes it easier to read compared to a .csv file that scrunches everything together when you look at the file in a text editor.