09-20-2017 06:10 AM
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
09-20-2017 07:43 AM
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:
Bob Schor
09-20-2017 08:02 AM
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!
09-20-2017 08:22 AM
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.
09-20-2017 08:26 AM
@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
09-20-2017 08:27 AM
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
=/