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

Excel works in LabVIEW but not in .exe build

Hello, 

 

I have seen several posts pointing out the known error in LabVIEW 2011 that prevents excel VIs from running properly in .exe builds when they run properly in LabVIEW. This is not my issue, as I am running LabVIEW 2015 SP1 and the excel formatting works still while I am on the computer I wrote the software on, also using the .exe. 

 

Does anyone have any idea what would be making it break on a different computer? I'm running office 2010 on both computers and have the newest updates of all things NI on both. Excel will open when I am running it on the smaller computer, but none of the data exports properly (or at all). I am left staring at a blank spreadsheet. 

 

Exasperated thanks,

 

Guy

0 项奖励
1 条消息(共 11 条)
6,096 次查看

Oops, forgot to attach my VI again. 

 

Here it is:

0 项奖励
2 条消息(共 11 条)
6,094 次查看

Can you show us the project/build specification? Maybe you need to "always include" something.

 

(Hard to tell, but there was a bug like that in older LabVIEW versions, but I thought it got fixed)

 

(I also don't understant the point of the sequence structure, but that's a different discussion ;))

0 项奖励
3 条消息(共 11 条)
6,088 次查看

in previous versions (last time I checked was LV2012) you had to explicitely include the Report Generation Toolkit in your project and add it to build specification (http://zone.ni.com/reference/en-XX/help/372120A-01/lvrgthelp/rgt_stand_alone_apps/)

__________________
Engage! using LV2015
0 项奖励
4 条消息(共 11 条)
6,083 次查看

Yep, I've read all about adding to the build specification. I'm not sure how to show that to you though, can you guide me? I saw lots about that bug in the older version of LabVIEW, but I don't think that's my problem because the .exe works fine on my computer. 

 

(The sequence structure made more sense in a previous version of this VI. I realize it is superfluous now, but I may revert back in the future and it wasn't hurting anything so I let it be 吐舌的猫 .)

0 项奖励
5 条消息(共 11 条)
6,077 次查看
Does your new system is installed with LabVIEW software or having only runtime engine.
If you have installed with LabVIEW ( whether problem is only with exe or both with exe as well as code)
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 项奖励
6 条消息(共 11 条)
6,047 次查看

If this is a new install, make sure you open Excel and dismiss any of the License Agreement or activation dialogs.  Probably not your issue but worth a shot.

 

Guess I should read the entire post since you said Excel opens on the smaller computer.  Dirp. 

aputman
0 项奖励
7 条消息(共 11 条)
6,012 次查看

The system on which the .exe works has LabVIEW, and the system on which it does not work has only the runtime engine. 

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

Its better to create a installer instead of executable file and Add Report generation tool kit as a supporting drivers while creating installer.

 

during installation it will be installed with all the necessary tookits

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 项奖励
9 条消息(共 11 条)
6,003 次查看

@jeanlucpicard wrote:

in previous versions (last time I checked was LV2012) you had to explicitely include the Report Generation Toolkit in your project and add it to build specification (http://zone.ni.com/reference/en-XX/help/372120A-01/lvrgthelp/rgt_stand_alone_apps/)

  B

That is certainly not true in LabVIEW 2014, and I don't believe it was true in LabVIEW 2012.  I have a LabVIEW RT Project that was developed in LabVIEW 2012 and that gets its "instructions" from an Excel Workbook, using the RGT a lot.  I'm away, working on my Laptop, but I did open the LabVIEW 2014 version of the Project and the Build only shows the Top Level VI, nothing in the "Other Files to Include".  If the RGT code is called from VIs that load when the Top Level VI loads, LabVIEW will now include it in the Build.

 

Bob Schor

 

P.S. -- we did port this to a second, "lab", machine (the one with all the hardware attached), but also had LabVIEW installed here so we could do debugging/testing.  However, I do recall porting analysis routines to students who did not have LabVIEW, and downloading the LabVIEW Run Time Engine to install on their PCs.  Some of the analysis routines also used the RGT to read the Excel files that are part of the Experiment's data set -- there were no problems, at least with LabVIEW 2012 and 2014.

0 项奖励
10 条消息(共 11 条)
5,988 次查看