06-21-2024 03:43 AM
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.
The following snip shows the error message:
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
Step 2: Creating a Project
Project -> Create Project -> Blank Project
Adding my VI to the Project
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)
Step 3: Creating the Exe
Right Click on Build Specification -> New -> Application (EXE)
Source Files:
Destinations (Default Settings):
Source File Settings (Default Settings):
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
Solved! Go to Solution.
06-21-2024 03:56 AM
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
06-26-2024 08:13 AM - edited 06-26-2024 08:16 AM
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
I clicked on the LINK "project's dependencies"
The following section solved my problem:
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)
Then I added these data to the section "Always included"
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