LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data in excel problem

Hi all,
I have a problem in saving my data into excel file. What I am trying to do is, when I run my VI, I want to save my data into excel. Then I run again, I want to append to file by column. Not by row. Think you guy understand. I attach one file what I trying to do. Please take a look. Thanks.
Saw
Download All
0 Kudos
Message 1 of 4
(2,942 Views)
I am not aware of an easy way to do this, but I have done this in the past. What you can do is read in the spreadsheet file every time you run the VI. Do the following with the data:
1. Read From Spreadsheet File VI
2. Transpose 2D
3. Wire Transposed 2D data to the top terminal of a build array
4. Wire new 1D array data to the bottom termainal of a build array
5. Transopse 2D data again
6. Write this 2D data back to the same spreadsheet file using the write to spreadsheet file VI.

There might be easier ways, but this is a way I had previously done.
0 Kudos
Message 2 of 4
(2,942 Views)
You have to specify range for data destination. Column would be Range("A1,A3"), Row would be Range("A1,C3"). Get excel toolkit from this website and see how it is done for 2D array and then you can modify it for 1D column vector. Toolkit is for free, submit by Phlips Research, I think.

RK
Message 3 of 4
(2,942 Views)
Thanks RK.
Saw
0 Kudos
Message 4 of 4
(2,942 Views)