LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append to excel file

Hi all,

 

I have got the example in the LV for exporting table to the excel,

 

The problem i am facing is that i have to append the new data to the same file every time a event occurs.

 

The vi is attached below.

 

Thanks in advance .

 

 

regards

0 Kudos
Message 1 of 10
(3,823 Views)
you can use the write to spreadsheet.vi to append data to excel files.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 10
(3,822 Views)

Hi sound nt

 

I don't have  labview 9 so I can not c your code but what can you do is, when you write data each time,keep one counter for row and one for column.

so when next time you start logging data to excel you can start from where you had placed last element.I hope you this will solve your problem.Or else post your vi in labview 8.5.

 

Best of luck

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 3 of 10
(3,810 Views)
also you can use activex to append data to excel there are very good examples of this in labview example finder.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 10
(3,807 Views)

HI HAROLD,

 

The VI that i have attached is from the Example finder only.

 

Can you modify the given vi,or the logic.

0 Kudos
Message 5 of 10
(3,799 Views)
you can write the data to the table and it will append the data to excel..... because your data is numeric you will have to convert your numeric data to a string to do this use the number to decimal string.vi and this will than beable to append your data to excel
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 6 of 10
(3,792 Views)
hope this helps
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 7 of 10
(3,786 Views)

Hi,

 

 

WHen the file is in open state and you run again then new file is created.

 

When you close the file then it asks to save it. and then also the next data does not append it.

 

have you got what i am trying to say?

 

Regards

0 Kudos
Message 8 of 10
(3,773 Views)

this may help:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=29337&query.id=49507#M29337

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 9 of 10
(3,761 Views)

Hi,

 

Thanks 

 

It helped with the spreadsheet example for now.

 

but in future i have to use the activex component, i will try that later.

 

regards..

 

0 Kudos
Message 10 of 10
(3,732 Views)