cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 553|回复: 2

[分享] labview打包成exe时出现1502错误的原因,分享

[复制链接]
发表于 2015-12-6 13:43:01 | 显示全部楼层 |阅读模式
Why Am I Receiving Error 1502 When Building an Application with LabVIEW?


Primary Software:   LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version:   1.0
Primary Software Fixed Version:    N/A
Secondary Software:   N/A

Problem:   
I am trying to build an application with LabVIEW, but I keep getting the following error:



What can I do about this error?

Solution:   
Error 1502 occurs when the Application Builder attempts to load VI dependencies or block diagrams after the VI dependencies and block diagrams have been removed from the build.

This error is commonly caused by building an application from a VI that has code which will never execute; for example, having a constant wired to the selector terminal of a case structure. If this is the cause, a few ways to avoid this error include removing the case structure, changing the constant to a control, or placing a diagram disable structure around the case structure.

In addition, this may be caused by deleting or removing subVIs and dependencies from the project that may still be loaded in memory. Although Application Builder should not require these dependencies at this point in the build, changing build settings to keep some or all of the VI dependencies in the final build can help workaround the issue.

There are several settings in the build specifications which typically resolve this issue. The first two are Disconnect type definitions and Remove unused members of project libraries found in the Additional Exclusions category. Uncheck both of these settings as seen in the following screen shot:



Changing these settings does slightly increase the size of the application. However, it will not greatly affect execution speed.

Another option that can be effective for solving this problem is Enable debugging in the Advanced category. Checking this option will include block diagrams that will greatly increase the application size (by approximately double), but will almost certainly resolve this error.



The final option is to include the front panel and block diagram of the VI that is causing the error.  Navigate to the Source File Settings category and select the VI that is causing the error. Uncheck the Remove block diagram box. If the VI is not listed in the Project Files section, then select Dependencies. Uncheck the Remove front panel and Remove block diagram boxes.




Sometimes this error can also be caused by a number of lower level issues, so National Instruments recommends that you report all of these errors to National Instruments technical support.

 楼主| 发表于 2015-12-6 13:55:14 | 显示全部楼层
如果上面的办法仍然没有解决,再用下面这个补丁一下
http://www.ni.com/download/labvi ... m-2010-sp1/2685/en/
发表于 2015-12-7 10:39:28 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-5-3 22:41 , Processed in 0.491511 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表