LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to learn how to create *.exe files in LabWindows CVI.


0 Kudos
Message 1 of 4
(4,955 Views)
Hi,
The *.exe files in LabWindows/CVI 5.5 are created by choosing 'Build/Target Type' as 'Executable'. You can choose your executable to be of 'release' or 'Debug' type by using 'Build/Configuration' menu. Once you have specified these options 'Build/Create Debuggable (or Released) Execuable' will create the .exe file for the current project.
Regards,
Srini Badri
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 4
(4,955 Views)
In CVI 5.5 after you are comfortable with the stability of your program's code you can go to the Build menu and set the target type to Executable, set the configuration to either Release or Debug (creates either a non-debuggable or debuggable .exe), then select Create Executable (shortcut keys = ctrl + M), and CVI will create your .exe file in the current working project directory.

If you need more specific information about all of the different aspects of creating executables you can look in the contents.pdf manual file for the keywords "Standalone Executable" and find all of the instances in the other CVI manuals that pertain to the subject. These manuals should all be in your cvi\manuals folder.

Jason Foster
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 3 of 4
(4,955 Views)
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
0 Kudos
Message 4 of 4
(4,955 Views)