LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string and number into a speadsheet

Dear all,

I have a simple question. I need to store numbers and strings into a file. The ideal format is excel file. I could save it in txt file with tab separating each column, and then change the format myself.
I can construct a 2D string matrix, which stores all the information I need. However, I don't know how to store it. I try to use save speadsheet vi, but it doesn't work for me. Is there anyway I can save the data as a table and then use it in excel?

Thanks
Sai Kit
0 Kudos
Message 1 of 2
(2,536 Views)

@Sai Kit wrote:
I need to store numbers and strings into a file. The ideal format is excel file. I could save it in txt file with tab separating each column, and then change the format myself.
I can construct a 2D string matrix, which stores all the information I need. However, I don't know how to store it. I try to use save speadsheet vi, but it doesn't work for me.

You probably missed a single step before saving in a file : use the Array to Spreadsheet function (in the string sub-palette) to convert your 2D string array into a single string with tab/return delimiters, then use the Write Characters to File vi. BTW, you could use a Table as 2D string array.
CC
Chilly Charly    (aka CC)
Message 2 of 2
(2,531 Views)