LabVIEW Load Error Code 3 When Running a LabVIEW Executable

Updated Jun 13, 2018

Reported In

Software

  • LabVIEW Application Builder Module
  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I built an executable in LabVIEW Application Builder. When I run it I receive the error LabVIEW load error code 3: Could not load front panel.

Solution

LabVIEW 8.0 and later:
1. Right-click on the build specification for the executable in your project and select Properties.
2.Select the Source File Settings category.
Under Project Files, highlight the subVI that needs to have its front panel included. Note that your subVIs must be part of the project in order for them to appear in the Project Files list. [The subVI is mentioned in the error message.]
3. Uncheck Use default save settings.
4. Uncheck Remove front panel. 
5. Repeat steps 2-4 for any other subVIs that need to have their front panels included.
6. Build your application

LabVIEW 7.1 and earlier:
  1. Open the Build Application or Shared Library (DLL) window.
  2. Click the VI Settings tab.
  3. Highlight the subVI that needs to have its front panel included.
  4. Press the Edit Build Settings... button at the bottom of the screen.
  5. Select No from the Remove Panel drop-down menu.
  6. Press the Change button at the bottom of the screen.
  7. Repeat steps 3-6 for any other subVIs that need to have their front panels included.
  8. Finish building your application as you normally would.

Additional Information

This error occurs if your executable displays the front panel of one of the subVIs in your project. When building applications, the LabVIEW Application Builder automatically removes the front panel of all subVIs. These are usually unnecessary and removing them allows for a smaller size of the executable.

If your executable loads the front panel of any subVI, you must specify this in the build properties in-line with the above solution so that it is excluded when the Application Builder remove front panels of all subVIs.

This error can sometimes occur if the software version or a device driver version used on the development machine does not match the run-time engine used on the target machine. For example, if the target computer uses DAQmx 16.0 and the development computer uses DAQmx 17.6, either upgrade the target version or revert on the development to ensure matched versioning.

This error can also sometimes occur when building an application which utilizes NI-DAQmx VIs.  If you see this error specifically for NI-DAQmx VIs, ensure that the driver is installed correctly on the development computer and that the source code runs correctly in the LabVIEW environment.

WAS THIS ARTICLE HELPFUL?

Not Helpful