LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add code in labview exe so that exe don't depend on code

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.

timmy
0 Kudos
Message 1 of 7
(3,415 Views)

What error are you getting?  Are you calling any VIs dynamically?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,389 Views)

Do you do a build application then an installation build? Your picture is quite uninformative.

0 Kudos
Message 3 of 7
(3,376 Views)

SOooo... what's the error code?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 7
(3,349 Views)

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!

0 Kudos
Message 5 of 7
(3,345 Views)

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.

timmy
Download All
0 Kudos
Message 6 of 7
(3,271 Views)

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.

 

0 Kudos
Message 7 of 7
(3,249 Views)