06-06-2011 01:54 PM
Solved! Go to Solution.
06-06-2011 02:10 PM
The Tabs are coming from the Array to Spreadsheet String Function. You are building a Spreadsheet string, complete with Tabs and CR. Just drop a Concatenate Strings in its place and it will work.
I would bag all of the tab constants and CR. Build an 2D string array with just the values (no tabs, no CRs), pass this into the Array to SS function.
06-06-2011 04:48 PM
So, I replaced both the Build Array.vi and the Array to Spreadsheet String.vi with a Concatenate Strings.vi and wired the resultant string into the Write to TextFile.vi and got the desired result.
I am still puzzled as to why those additional tabs were added by Array to Spreadsheet String. I'm holding in my hand a printout of an old LabVIEW 8 program with that construction, which is known to work properly.
Anyway, thanks for the quick response which gets me rolling again.
06-06-2011 05:47 PM
wildcatherder wrote:
I am still puzzled as to why those additional tabs were added by Array to Spreadsheet String. I'm holding in my hand a printout of an old LabVIEW 8 program with that construction, which is known to work properly.
Makes complete sense when you look at your code. You build a string, including an end-of-line character, and put that string into an array. Then, when you run it through Array to Spreadsheet String, it puts a tab after every array element, and new line at the end of each row in the array. The first element of your array contains a new line but Array to Spreadsheet String doesn't know about it; it still inserts a tab between that array element and the next one, giving you the tabs.