Hello Feza,
The answer to your question depends on which version of CVI you are using. However I would start by reading the help section titled, "Creating and Distributing Standalone Executables and DLLs" in the "LabWindows/CVI Programmer Reference Manual". You can find a copy of this manual on your hard drive at \manuals\progrref.pdf or online at http://www.ni.com/manuals then click on "All Manuals..." >> "LabWindows/CVI Products". I would also recommend the sections on the Build and Run menus in the Project Window chapter of the "LabWindows/CVI User Manual" (also available online).
We should now be prepared to build an executable. Start by opening a completed project that is ready to compile (see \samples\apps for ready to build projects)
.
This is where things differ:
In CVI 4 an 5.0.x, executables are built from the Project window by selecting "Build >> Create Standalone Executable".
In CVI 5.5.x, debug executables are built every time you Debug (Run in old terminology) your program. When your program performs all of its own error handling and is thoroughly debugged, you are prepared to build a Release executable. A Release executable is smaller and runs faster that its Debug counterpart due to a lack of User Protection and debugging code. This options is set by selecting Build >> Configuration >> Release. Now we can do Build >> Build Release Executable to make our Release executable.
I hope this helps you to get started.
Jeremiah
National Instruments
http://www.ni.com/ask