|
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.
|
|