LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an Windows Installer for Labview vi

Dear Labview community,

 

I just finished a labview vi for a course in university and now have to build an exe/installer to make it usable on a windows pc without labview on it.

 

I built the installer to make labview runtime 2016 accessable on the other pc and an .exe to use my vi. But it wont work. When trying to start the .exe it looks for specific drivers and doesnt seem to find all it needs. it looks for a library called instr.lib and in specific  it seems to need a subfolder including some kind of .dll or .exe that is not present.

 

But trying to execute the .exe on the pc with labview on it, everything works fine.

 

Do you have any ideas what could be missing in the installer or exe?

 

best regards,

Michael

0 Kudos
Message 1 of 6
(4,856 Views)

Did you run the installer first?  That should provide you the files and folders you seem to be missing.

 

If you think that you might have "done this wrong", I recommend that you take the following steps:

  • Use Windows to compress the Folder containing your Project and its associated VIs (the ones you wrote).
  • Attach the resulting .zip file as a Reply to this Post.  We can then take a look at your Installer build, try it ourselves, and see for ourselves what has gone wrong so we can help you to fix it.

Bob Schor

0 Kudos
Message 2 of 6
(4,826 Views)

Dear Bob,

 

I built an installer and also installed it on the pc without labview before trying to use the .exe but it wouldnt work.

 

I attached the vi and .dll it uses as you suggested.

 

In short: My vi uses an infarred sensor to measure temperature and an MCS temp controller to heat up a heatingbed to a desired temp.

To be able to use the MTC TCX device the vi needs the provided .dll but nothing else.

for the connection to the inf sensor it uses ni visa communication as you'll see i configured in the vi.

 

Thanks a ton for looking into it!

0 Kudos
Message 3 of 6
(4,819 Views)

What you did not include there was your project.  The VI may only need the DLL to run, but in order to build properly and deploy you will need to tell the DLL where to go on the target machine as part of your installation (unless it's already there for some reason anyway?).  Take a look at this forum post that talks about including the DLL in the build spec.

https://forums.ni.com/t5/LabVIEW/How-do-I-include-a-dll-in-a-build-specification-and-or-installer/td...

 

0 Kudos
Message 4 of 6
(4,813 Views)

@octaris wrote:

for the connection to the inf sensor it uses ni visa communication as you'll see i configured in the vi.


Do you include a setup for VISA Runtime to your installer in addition to the LabVIEW Runtime?

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 5 of 6
(4,808 Views)

Sorry, i will upload it right away. but the .dll is included in my project and i'm pretty sure thats not the problem. It seems to me some kind of instrument library to use visa on the pc without labview is the problem.

When executing it it searches something inside this directory E:\Bac Arbeit\Endprodukt\Installer\instr.lib\ni579x\Synchronization\v2\Shared and then stops because there's not what it suspects to be there

=/

0 Kudos
Message 6 of 6
(4,807 Views)