LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating an executable with broken vis

Hi all

I have an odd problem.

We are using a 3rd party library to do some sound filtering. They have protected their dlls with a usb protection device (an aladin HASP), which prevents the vis from loading when the usb device is not found.

We have one usb device, and since we do development as well as production, we need some workaround to continue programming. I have included a conditional disable to allow me to test and run the labview program without using the extra library - it works fine for most development purposes.

Now, I am ready to deploy the program to the production machine at out costumers, and I change the symbol in the conditional disable to enable the 3rd party library. This results in broken vis and my program cannot be built into an executable.

What to do?
Is it possible to build the executable despite the broken vis? I am sure that when we move the .exe file to the production machine the broken vis will no longer be broken and the program should run properly.

cheers
morten
0 Kudos
Message 1 of 3
(2,623 Views)

Hi morten,

i think it is not possible, but you can remove this vi´s and load it dynamically. Then you don´t need them to build your executable, because they aren´t part of it.

Mike

0 Kudos
Message 2 of 3
(2,620 Views)
You cannot create an executable with broken VIs. You have first to check why they get broken when changing the conditional disable. Reasons maybe changed connetor panes, changed type defs, renaming of VIs, moving VIs, uninstalled third party DLLs.
 
The solution to load them dynamically will not help. You will get an error when checking the VIs state after "Open VI Reference" and you will see it is "Bad". It will only help if missing DLLs is the only reason. In this case I prefer to copy the DLLs to the local machine.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 3 of 3
(2,608 Views)