취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

save data from LabVIEW2010 to Excel (Win7) with the format xlsx

해결 완료!
솔루션으로 이동

Hello all,

I have a question about the data save to Excel.
I want data save from LabVIEW2010 to Excel (Win7) with the format *.xlsx. I need directly this format.
Is there a "easy" way to do this. Maybe examples are somewhere.
The attachement shows a simple example. I know the "The Write to spreadsheet file.vi  " saves the data in the cvs format. But maybe this is the start of a solution.
Thanks in advance
 
zäpfle
0 포인트
1/12 메시지
7,781 조회수

Hello,

 

Though I do not know why anyone would want to work with excel, especially for data analysis I think your problem is already solved; look in the help; in

labview\examples\comm\ExcelExamples.llb

you will find "Write Table To XL.vi"

This uses Excel as an Active-X component and should work just fine for you.

 

 

0 포인트
2/12 메시지
7,777 조회수

As noted, you need to use ActiveX if you want to write directly to an Excel file. If you don't have the experience in dealing with ActiveX then you may wish to consider the Report Generation Toolkit.

0 포인트
3/12 메시지
7,772 조회수

Thank you all

I think I can solve the problem

0 포인트
4/12 메시지
7,762 조회수

Hello all,

unfortunately I couldn't solve the problem. Please see the attachment. I would like save the 2D Array to the shown path (C:\User\Public\.....). The prompt should not appear. The program stops at Invoke Node "Workbook close", why?

I don't know the error.

 

I hope anyone have solution.

 

many thanks in advance

 

Zäpfle

 

 

0 포인트
5/12 메시지
7,716 조회수

You need to provide the filename to the Workbook.Close function. Please read the Help for that function.

0 포인트
6/12 메시지
7,697 조회수

Hello,

sorry for the delay,

 

is it possible, that you explain with more details: "You need to provide the filename to the Workbook.Close function"

Where can I find the Help for that function.

 

Or maybe it's possible, someone completes the attached VI.

 

thanks in advance

 

regards zäpfle

 

0 포인트
7/12 메시지
7,679 조회수

Here is another example:

 

 

0 포인트
8/12 메시지
7,664 조회수

@zäpfle wrote:

Hello,

sorry for the delay,

 

is it possible, that you explain with more details: "You need to provide the filename to the Workbook.Close function"

Where can I find the Help for that function.

 

Or maybe it's possible, someone completes the attached VI.

 

thanks in advance

 

regards zäpfle

 


It's really quite simple. See the "Filename" input for the Close method? You have to wire in a path. You have a path there. Connect your path (which should be a control, NOT a hard-wired constant) to that through a Path to String function. Delete the file open function.

0 포인트
9/12 메시지
7,662 조회수

Thank you very much for this part of the whole solution.

 

I don't wont a prompt (see unbenannt.png).

 

If the file isn't exist, the vi should generate a new one. If the file exist and the filename is the same, the vi overwrite the existing file.

 

Do you mean, there is a easy solution?

If so. Do you give me some good tips or examples?

 

thanks in advance

 

zäpfle

 

 

모두 다운로드
0 포인트
10/12 메시지
7,657 조회수