LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Including vi.lib into an executable file

Hello, I built an executable file of a LabVIEW-project that reads in a camera. If I run the .exe on a computer with LabVIEW installed on it, it works.

However, if I run it on a computer with no LabVIEW installed, the .exe runs but doesn't connect the camera.

In the dependencies of my LabVIEW-project there is the vi.lib and three other .dll files (see appendix). Can that be the reason that it doesn't work on computers with no LabVIEW installed?

How could I include these dependecies into my executable file?

 

Thank you

 

Lauro Müller

 

 

 

0 Kudos
Message 1 of 12
(4,559 Views)

You need to create an installer and add the exe in that build specification.

 

 

Certified LabVIEW Architect
0 Kudos
Message 2 of 12
(4,537 Views)

I did that but there is still the same problem. Besides, I can't see that the 'vi.lib' file is included in the my installer. Does the 'my installer' automatically add all the dependencies of the .exe?

0 Kudos
Message 3 of 12
(4,525 Views)

It adds all static dependencies. You will have to add any dynamic dependencies yourself. 

 

In the installer build specification, under "additional installers" if you select to "automatically select recommended installers", you also get included what LabVIEW can detect that is needed. If you have a third party driver, you need to install that separately.


Certified LabVIEW Architect
Message 4 of 12
(4,520 Views)

I see from the dll's that you have IMAQ and Vision and something else. Make sure these installers get included in the installer.

Certified LabVIEW Architect
0 Kudos
Message 5 of 12
(4,516 Views)

Vision requires a runtime license on the target, if memory serves.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 12
(4,503 Views)

But how can I add dynamic dependencies?

0 Kudos
Message 7 of 12
(4,480 Views)

In the exe file build spec, under "Source Files", add to "Always included"

Certified LabVIEW Architect
0 Kudos
Message 8 of 12
(4,478 Views)

But then it creates a folder next to the .exe with the libraries in it, instead of including them into the .exe. 

When I want to run this .exe on a computer with no LabVIEW, it cannot read these files if they're not included in the .exe, right?

In the source file settings I should be able to select the destination: Calibration_Femto_3.exe (see appendix), but I'm not.

0 Kudos
Message 9 of 12
(4,471 Views)

I haven't used llb's since... a long time ago so I'm not sure but guess they cannot be added directly to an exe. But the exe can reference files outside the exe, no worries.

 

But I'm a little concerned with the dlls, have you added them to the library yourself? These look like dlls that should come from an installer and things might go wrong if you try to override that.

Certified LabVIEW Architect
0 Kudos
Message 10 of 12
(4,466 Views)