Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 3 out of 5   

Why Am I Receiving the Error 1013: "Cannot load front panel." When I Run a Built Application or DLL?



Primary Software:
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am trying to run a built LabVIEW application. When I run the executable (.exe) or Dynamic Linked Library (DLL), I receive Error 1013 Cannot load front panel. What is going on?

Solution:
Based on whether you compiled a executable or DLL, below are common solutions to the error.

Error 1013 When Running a LabVIEW Executable 
This error can occur when a subVI of your main application has had its front panel removed during compilation, and when that front panel is required by the application. Specifically, check the settings for that particular subVI from inside the application builder:

LabVIEW 7.x:
  1. Click Tools » Build Application or Shared Library (DLL)...
  2. Click on the VI Settings Tab
  3. Ensure that the Remove Panel Attribute is Set to No for the SubVI in question.

See the image below for an example of settings that will cause this behavior.



LabVIEW 8.x or later:

Check the following settings within the Project Explorer:

  1. Right-click your built executable and click on Properties.
  2. Go to the Source File Settings.
  3. Click Dependencies
    • Check Set save settings for all contained items.
    • Uncheck Remove front panel.
  4. Click Build.
The image below shows the settings for LabVIEW 8.x or later to resolve this error.

Error 1013 When Running a DLL Built in LabVIEW
This error can occur if you are trying to run a subVI dynamically using VI Server within the VI that you are compiling into a DLL. In order for it to run properly you have to include the subVI in the Always Include field of the Source File category in My DLL properties as shown below.



Related Links:
KnowledgeBase 18RDJ60O: Why Does My Executable Not Work When Using the Current VI's Path Constant?
KnowledgeBase 4EMGPJCY: Error 1013 on a Real-Time Target

Attachments:





Report Date: 04/20/2005
Last Updated: 12/13/2016
Document ID: 3KJGPNBC

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit