|
|
发表于 2009-7-20 20:52:28
|
显示全部楼层
"LabVIEW Load Error Code 3: Could Not Load Front Panel" When Running a LabVIEW Executable
Primary Software: LabVIEW Development Systems
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: N/A
Problem:
I have created a LabVIEW executable using LabVIEW's Application Builder. When I run the executable file that I created, I receive the message: LabVIEW load error code 3: Could not load front panel. Why am I getting this error, and what can I do to avoid it?
Solution:
When you build an executable in LabVIEW, the Application Builder removes the front panels of all of your program's subVIs. These front panels are generally unnecessary to your program, and removing them allows for the creation of a much smaller executable file.
If you have a program that displays the front panels of subVIs while it is executing, then you need to explicitly tell the Application Builder to include those front panels before creating the executable file. In order to do this, please follow the steps below:
Open Application Builder and add your Top-Level VI
Click on the VI Settings tab
Highlight the subVI that needs to have its front panel included
Press the Edit Build Settings... button at the bottom of the screen
Select 'No' from the 'Remove Panel' drop-down menu
Press the Change button at the bottom of the screen
Repeat Steps 3-6 for any other subVIs that need to have their front panels included
Finish building your application as you normally would
This should take care of the problem that you are seeing. If you complete these steps, and you are still seeing the issue, then try going through Steps 3-6 for every VI in your program. This will take care of the problem but leave you with a very large executable file. Once you have verified that the executable file is working, you can then start removing front panels one at a time until you identify the subVI that was causing the problem.
Related Links:
Developer Zone Tutorial: Creating Executables with the LabVIEW Application Builder
Developer Zone Tutorial: Distributing Applications with the LabVIEW Application Builder
Knowledgebase 3SS92EHF: Why Won't the Front Panel of my SubVI Open When I Create an Executable?
Knowledgebase 3R7C7LHY: How Can I Change the Value of Show Panel in the LabVIEW Application Builder? |
|