原创 Error 7 When Running an .EXE Using VIs from Report

2007-12-24 12:13 4485 4 6 分类: 汽车电子

Error 7 When Running an .EXE Using VIs from Report Generation Toolkit for MS Office

Primary Software: LabVIEW Toolkits>>Report Generation Toolkit for Microsoft Office
Primary Software Version: 1.2
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Full Development System, LabVIEW Development Systems>>Professional Development System



Problem:
Why do I get Error 7 running an .EXE that uses VIs from Report Generation Toolkit for MS Office? The VI runs great in LabVIEW and there were no errors during the building process.

Solution:
This happens when the Report Generation Toolkit's dynamic VIs are not included during the build process.

When you build a stand-alone application or DLL that uses the LabVIEW Report Generation Toolkit 1.0, the support file directory containing  _wordsub.llb and  _exclsub.llb must be located in the same directory as the application or DLL, and must be named data (the default support file directory for the Application Builder). If error 7 is still thrown when executing the application, _wordsub.llb and  _exclsub.llb need to be mass compiled to relink their VIs. Mass compiling is done by selecting Tools»Advanced»Mass Compile.

In versions 1.0.1 and 1.1 of the toolkit, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs on the Source Files tab when you build the application or DLL. These two VIs contain SubVIs that the high-level Report Generation VIs call dynamically.

LabVIEW 7.x

To add the Word and Excel dynamic VIs in LabVIEW 7.x, click on the Source Tab in Application Builder and select Add Dynamic VI.

If using MS Excel, please include the path labview\vi.lib\addons\_office\_exclsub.llb. A file dialog box should come up. Select _Excel Dynamic VIs.VI then click OK.

If using MS Word, please include the path labview\vi.lib\addons\_office\_wordsub.llb. A file dialog box should come up. Select _Word Dynamic VIs.VI then click OK.

LabVIEW 8.x

The Application Builder only lets you add files from your project therefore you have to add this file to your project explorer first:


Then you can add it as a dynamic VI inside the Application Builder:





If you are using the MS Office Report Express VI, you should include the template used by the Express VI in addition to your application. The configuration of the MS Office Report Express VI relies on a report template which is either a basic template provided in the LabVIEW templates directory or a custom template provided by the user. When an executable is created from the MS Office Report Express VI, the template must also be included as a support file in the Source Files tab. This will add the template to the data directory so that the executable will be able to call it upon execution of the program.



Related Links:
KnowledgeBase 2C27CLXL: When Running My Executable Made in Application Builder it Gives ERROR 7

Attachments:


file - file_in_project.jpgadd - add_dynamic.jpg
PARTNER CONTENT

文章评论2条评论)

登录后参与讨论

用户16212 2007-12-25 17:04

这是用NI的generate report toolkit 时在把程序打包可能出现的相应error 的处理方法。

用户741296 2007-12-24 20:16

这是什么呀?

给解释一下!

相关推荐阅读
用户407031 2014-09-25 23:05
DB 分贝
功率和dB的关系应该如下: 1.dB的引入是为了把乘除关系变换为加减,便于工程中的运算。 2.[dB] = 10lg(输出功率W/输入功率W)。如:输入功率为1W而输出功率为1000W,则...
用户407031 2013-03-24 11:50
C语言二进制除法用左右移位来表示
有些编译器和硬件是支持乘除法和浮点运算,运用起来也是很方便!唯一让我不满的就是很占用ROM ! 所以某些平台恰好可以用移位来换算! 学习推算心得: 分母是为 2的平方...
用户407031 2011-09-14 13:53
labview 回调VI
LabVIEW界面程序最常用的结构就是循环事件结构。用事件结构截获用户在界面上对控件的操作,然后做出相应处理。 在文本语言中,常用的事件处理方法与LabVIEW是不同的。文本语言常常使用回调函数来处...
用户407031 2011-08-31 00:02
SIT and Simulink
运行通过仿真接口工具包(SIT)生成的VI时输入控件和显示控件变为灰色 主要软件:LabVIEW Toolkits>>LabVIEW Simulation Interface Toolki...
用户407031 2011-05-10 11:10
Step7 功能保护
在STEP7中对程序块加密   您能够通过STEP7软件的KNOW_HOW_PROTECT功能实现对您程序代码的加密保护。如果您双击鼠标打开经过加密的程序块时,您只能看到该程序块的接口数据(即IN,...
用户407031 2011-02-19 13:21
step7 指针
西门子PLC程序中的地址指针如何理解,我至今还是搞不明白程序中的地址指针,看书似乎明白了。遇到实际问题,还是不明白。下面是一个通用的读输入输出的程序。FC100的变量声明表:四个变量, 语句表程序 N...
EE直播间
更多
我要评论
2
4
关闭 站长推荐上一条 /3 下一条