11-13-2013 07:08 AM
Hi,
I have two 1D arrays of data that I want to save to an excel file (csv format). I have tried using the write to spreadsheet function which is not able to solve my purpose. It is writing the same N data points over and over (appended to the same file), so instead of having N lines, I have 100N or something lines.
I have attached my VI alongside. Any help appreciated.
Thanks!
Sanjay.
11-13-2013 10:37 AM
Sanjay, I'm struggling to understand what you are hoping to accomplish, I see you have a 2 dimensional array and I see that you are grabbing the second column (array indices are zero based) and writing it to a file. I can't tell if you want to write the data as a 1D or 2D array to the file so I'll attempt to cover both
Writing the 2D array:
Wire "Array_val_3 3" directly to the "2D Data" input of the "Write to Spreadsheet File" VI.
Writing as a 1D array:
VI Snippet is attached
11-14-2013 12:41 PM
Thanks a lot for the help. Actually, I made the mistake of using run continuously instead of the run button. I'm new to labview and I'm sorry.
Thanks!
Sanjay.