取消
显示结果 
搜索替代 
您的意思是: 

Excel_Save_Workbook error

已解决!
转到解答

I am running this on a computer with windows 10, labview 2016(64-bit) and Microsoft Office 2016(32-bit).

When I add a "Save Report to File" initially everything was error free. When I attempted to run the vi, errors started getting reported. The original source of the error appears to be in "NI_ReportGenerationToolkit.lvlib:Excel_Save_Workbook.vi". The error indicates "Invoke Node: Contains unwired or bad terminal". Then when I try to close the subvi's all related to this, they ask me to save even though no changes have been made. I have tried reinstalling the toolkit to no avail. I have attached a screenshot of the simple example vi.

 

*edited I actually have office 32-bit

0 项奖励
1 条消息(共 19 条)
8,604 次查看

First, never attach pictures of code -- attach the actual VI (or a VI Snippet).  If we open your VI, we can (a) test it, (b) edit it (and return the edited version to you), (c) examine it more closely (including seeing other cases if you have a Case Statement, or using the LabVIEW Help if there's a function we need to check).

 

Second, I notice you have nothing wired to the "Save to File" Report File input.  Could this be part of the problem?

 

Have you looked at the Examples that ship with LabVIEW?  A few years ago, I posted a Revised Example on the Forums.  If you search for Revised Example on the Forum Search Bar, it should be one of the first "hits", and should show you how to do this.

 

Bob Schor 

2 条消息(共 19 条)
8,564 次查看

I thought that since the report generation toolkit must be paid for, we were not supposed to post those.

 

Wiring in a path to "save to file" input doesn't change the error.

 

I found your example, thanks. It has the same error when I try to run it.

 

I have another computer running labview 2015 and it can run your example just fine. When I compare the "Excel_Save_Workbook.vi" block diagrams between the computers I can find no differences.

0 项奖励
3 条消息(共 19 条)
8,555 次查看

@softxray wrote:

I thought that since the report generation toolkit must be paid for, we were not supposed to post those.

Nope, nothing wrong with posting code. 

Wiring in a path to "save to file" input doesn't change the error.

 Suggests the Toolkit isn't properly installed (or you don't have the proper Version of the Toolkit).

I found your example, thanks. It has the same error when I try to run it.

See above. 

I have another computer running labview 2015 and it can run your example just fine. When I compare the "Excel_Save_Workbook.vi" block diagrams between the computers I can find no differences.

I think this proves my point -- there is something wrong with your installation.


Bob Schor

0 项奖励
4 条消息(共 19 条)
8,553 次查看

So do you think I should completely uninstall labview and then reinstall it?

Reinstalling the toolkit did not work.

0 项奖励
5 条消息(共 19 条)
8,551 次查看

Uninstalled all labview products and installed labview 2016 professional development system. Opened up the excel demo, and the same error persists. Maybe there is a bug in the latest version of the toolkit?

0 项奖励
6 条消息(共 19 条)
8,534 次查看

For the 2015 system that it works on, is LabVIEW the 32 or 64 bit version?

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 项奖励
7 条消息(共 19 条)
8,524 次查看

I don't think there's a bug.  I also have LabVIEW 2016 installed (Windows 10 x64, LabVIEW 32-bit 2016 SP1).  I (just now) downloaded the Demo from the Forum (though I've also got it somewhere on this PC), double-clicked it to open it, ran it, and it finished (a few seconds).  I'm using 64-bit Office 2013.  I have no clue why you are getting errors here.

 

Bob Schor

 

P.S. -- I checked, and indeed, I have a BS Demo.xlsx file that contains two "Configuration" tables, a table of 3 channels of data, and a plot of that data.

0 项奖励
8 条消息(共 19 条)
8,523 次查看
解答
已被主题作者 softxray 接受

So I don't know why it happened initialy but I did find a solution.

In the Excel_Save_Workbook vi, I copied, deleted and repasted the invoke node that had the "save as" method. I then rewired it, and everything worked.

Thank you for your help Bob, that example vi you wrote helped quite a bit.

BTW, I was using the 64 bit version of labview 2016. I tried using it with both 32 bit and 64 bit versions of office 2016.

 

What might have happened is my download file might have gotten corrupted, I used the same downloaded file to install and then reinstall labview.

9 条消息(共 19 条)
8,515 次查看

Thank you!  I had same situation.  Copy and re-paste didn't do the fix, but I deleted the invoke node and replaced it with a new one, that worked.  As you've said, is machine-specific, we have 4 computers that use the same VI on a network, 3 had the error and one did not.  

Certification Engineer II
National Instruments

Certified LabVIEW Developer

0 项奖励
10 条消息(共 19 条)
8,359 次查看