LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing 2d array of different precision data to a comma delimited text file

I have 4 1d arrays of data. I want to write the data (2d array) to a comma delimited text file to be opened by another application. The problem been that the standard write to spreadsheet fileVI converts all my data to the same format i.e. floating point number with specified floating format. However I require my first 3 arrays to be decimal integers and the last array to have 3point precision i.e. %f3.
Message 1 of 4
(3,280 Views)
try using the convert to spreadsheet string function and then use the write characters to file vi. You can easily create the tab delimited with precision using this method. hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(3,280 Views)
Thanks. I tried this. Almost success. The only problem is that the data is in 4 rows in the text fileand I need it in columns. Is it possible to do some sort of transpose on a string???
0 Kudos
Message 3 of 4
(3,280 Views)
sure you are probably building a 2d array before you are converting to a spreadsheet string. Try using the transpose 2d array function. That should solve your problem. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 4
(3,280 Views)