03-22-2013 02:50 AM
Hey everybody,
I am using labview 8.5. I build exe of my code using snapshot folders. After solving conflicts when exe is created. I remove the code from disk but this gives error when exe is executed. I want to build a exe that don't depend on code. I mean i want to get rid of code so that only exe is enough to execute.
03-22-2013 08:23 AM
What error are you getting? Are you calling any VIs dynamically?
03-22-2013 08:33 AM
Do you do a build application then an installation build? Your picture is quite uninformative.
03-22-2013 11:27 AM
SOooo... what's the error code?
03-22-2013 11:33 AM
Properly built, an exe does not depend on existing code.
From the information given, it is impossible to tell what you are actually doing. Please be much more specific!
03-26-2013 12:53 AM
My main VI is calling many subVIs. Except for these subvis different modules code is present in folders, these folders also include ini files and text based command files. Now when i add these code folders as snapshot and after solving for errors and conflicts. I add these folders to always included section and my main VI as source code. When i build for exe, there is no errors and code exe is generated. This exe works fine if code is present at disk. If i remove the code from disk the exe stops proper execution and gives error. Please tellme if there is any special considerations for making exe that don't depend on code.
03-26-2013 05:51 AM
The exe cannot contain .ini files and such, it only contains VIs, ctls and other LabVIEW files.
The other files are placed in a 'data' subfolder by default. So to run the exe you will need this folder as well. You can create an installer which installs the exe and all required supporting files.
If you want to run the exe on a machine other than your development machine you can also include LV run-time engine and required drivers (like VISA) in the installer.