在试图编译LabVIEW2011的工程时报错1003
主要软件:
主要软件版本: 1.0
主要软件修正版本: N/A
次要软件: N/A
问题: 我的工程在开发环境下可以正常运行,但是当我尝试编译这个工程时,显示编译错误,提示VI被损坏,要求打开LabVIEW修复错误。提示错误1003,发生在C:\...\AB_TargetFile.lvclass:Open_TopLevel_VIs.vi
Figure 1: Error code
为什么会产生这个错误?
解答: 一个可能的原因是你的工程里包含了包装工程库Packed Project Library (PPL) ,库中有一些内联的VI导致的,这在LabVIEW2011中是有可能出现的。在编译的过程中,LabVIEW试图编译这个库(PPL),然而内联的VI由于方框图的缺失导致了错误。这在build过程之外是不会发生的,所以在开发环境中不会报错。
解决这个问题可以尝试:
1) 重新编译PPL。在生成应用程序的对话框中,选择高级,勾选允许调试,保留PPL的方框图。
Figure 2: Build Option
2) 从项目中移除这个库,使用原来的没有打包的库
相关链接: KnowledgeBase 2O79IHUV: Error 1003 Occurs When Trying to Create an Executable
KnowledgeBase 3E78UM4B: Error-1003 When Trying To Programmatically Launch A VI Using CAN Functions in EXE
附件:
报告日期: 12/19/2011
最近更新: 08/30/2012
文档编号: 5SIEL81O
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.