LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write data in time intervals to excel file without opening it

Hello

 

I am measuring some values using . I need to write these data in to an excel file. ( WITHOUT opening the excel file. The data has to go on inserting in the excel as long as u run the VI). The data is measured continously. At every 2 minutes time, the data has to be recorded in to excel.

 

How is this possible?

 

thanks

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 5
(4,385 Views)

WITHOUT Opening Excel. Excel is not on the machine, you dont want to see the excel application, or you already have the file opened?

 

Options for writing dirrectly to an excel file are

1.  ActiveX excel objects, excel application can be opened without showing the user interface, but needs the version of excel on machine to work.

2.  Report generation toolkit, less flexable than ActiveX but most wrapper functions already provided REQUIRES ADDON Toolkit).

3.  Treat this file like a tab delimited text file, jsut append new text in tab delimited form.  Save the file as filename.xls when completed.  You can not have any excel specific formatting in this format (at least not easily) 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 5
(4,380 Views)

Hello falkpl

 

Excel is already in my computer. What i need is, I dont want a dialog box to pop up asking to save and all. The data should be automatically saved to an Excel sheet at a specific folder.

 

I tried with ActiveX excel objects , but it always asks for file path and opens the excel sheet. Also i could not save the data in the desired row and column.

 

Any example to save data in desired rows in LV version 7.1 would be very helpful..

 

thanks

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 5
(4,353 Views)

open excel activeX.JPGThis is a

 

function I have used for oprning excel in silent mode.  You can play with the visibility of the application I have a more updated version of the code but cant get to it right now.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(4,328 Views)