LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an executable "exe" - Missing external functions

Solved!
Go to solution

Hello everyone, 

 

my problem is the following: 

I would like to create an executable data (.exe) from a VI. 

This VI consists of several sub-VIs 

 

I use LabVIEW 2023 Q1

 

After creating the exe, LabVIEW shows that the program has problems.

Lacuh_0-1718958057417.png

The following snip shows the error message: 

Lacuh_1-1718958125944.png

 

When I run the the VI with LabVIEW then everything works fine.

The problem only occurs when I start the program by the exe.

 

In the following I desribe how I created the "exe"

 

Step 1: Open the VI I want to create an exe from

Lacuh_2-1718958487739.png

Step 2: Creating a Project

Project -> Create Project -> Blank Project

Adding my VI to the Project

Lacuh_3-1718958571517.png

After that I saved the project in a folder called Test008

 

In the Project Explorer all Sub-VIs are shown, also the VIs which are missing (see error message)

Lacuh_4-1718958709247.png

 

Step 3: Creating the Exe

Right Click on Build Specification -> New -> Application (EXE)

Lacuh_10-1718959278381.png

 

 

Source Files:

Lacuh_6-1718958918123.png

 

Destinations (Default Settings): 

Lacuh_11-1718959312418.png

Lacuh_12-1718959335802.png

 

 

 

Source File Settings (Default Settings):

Lacuh_8-1718959012348.pngLacuh_9-1718959025648.png

 

I have not made any changes to the other settings.

 

I would be very happy if someone can help me with that issue. 

Unfortunately I do not have a lot of LabVIEW knowledge 😞

 

Kind Regards

 

Chris

Message 1 of 3
(471 Views)

Your sub VIs use an external library that is not automatically included in the build. The driver probably comes with instructions how to deploy it in a built executable. Have a look in the manual.

Also see which point of this article applies to you: LabVIEW Executable Cannot Find DLL

 

Message 2 of 3
(457 Views)
Solution
Accepted by topic author Lacuh

Thank you very much for your support. 

I was able to solve the problem. I would like to briefly describe my approach

 

I used the explanations from your linked page: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004AXDSA2&l=de-DE

 

Lacuh_0-1719403187995.png

 

I clicked on the LINK "project's dependencies"

 

The following section solved my problem: 

Lacuh_1-1719407220099.png

When I read this, I thought to myself that a "dll" is probably not found because it is called by another dll, just like in the example.

 

I opened the folder where the Vis are located (Yellow) and added every data which I have found there to the project (see red)

 

Lacuh_2-1719407367797.png

Then I added these data to the section "Always included"

 

Lacuh_3-1719407419615.png

 

I clicked "Build" and my Exe worked 🙂

 

The "dlls" would probably have been enough to solve this problem.

 

I hope someone can benefit from my problem here in the future

 

Kind regards

 

Chris

Message 3 of 3
(400 Views)