Build EXE in LabVIEW

Note: This article is intended to be a pictorial step-by-step guide for a first timer attempting to build an EXE. So the steps mentioned as optional can be left to default by a first timer to keep it simple and easy.

Tools Required: LabVIEW Professional Development System(to build an application in LabVIEW, you need Application Builder which is part of LabVIEW Professional Development System). If you have any other LabVIEW package,then you need to purchase Application Builder as an add-on to start building executables.

Pre-requisite: Arrange and save your project explorer with all the files required and keep it ready.

Suppose you have your vi ready and now plan to build an EXE. When you go to Tools>>Build Application(EXE) from VI, it will simply prompt a dialog box seeking your permission to create a new build specification in a new project. Indicating that a project is required to build an EXE

Steps to build an EXE:

        1. Open New project. Add all vis, controls, files… (everything that is required for running your main vi) under ‘My Computer’. Save the project.
        2. Right click on Build specifications and select New>>Application(EXE), which will open up ‘Application Properties” window.
          New EXE
        3. In the left, you will find Category. Select Information and enter these details:
          • Build Specification Name : This is the name that will appear under Build Application in the project explorer. Keep it unique
          • Target Name :  This is the real name of your application.
          • Destination directory path : The location you provide over here is the place where you want to store your application.
          • Build Specification Description: Optional


        4. Next select Source Files and enter these details:
          • Startup VIs : This is the vi that will run,when the application is launched. Select your top level vi and click on the Add Item arrow adjacent to the Startup VIs section. This will add the selected vi in the project explorer to the Startup VIs. You need to have atleast one vi as startup vi.
          • Always Included :  Add all other files(subvis, ctrls..)that would be dynamically loaded, to this section. Select files and click on the Add Item arrow adjacent to the Always Included section to add them to Always Included section.

          Source Files

        5. Select Destinations(optional).
        6. Select Source file settings (optional).
        7. Select Icon (optional).
          Instead of default icon, you can use icon editor window to create an icon of interest and use it. To do so,

          • Click on Icon Editor(encircled in red).Icon
          • Using the tools available, create and save the icon.Icon editor
          • Now uncheck ‘ Use the default LabVIEW icon file‘. This will automatically prompt you to add the path for icon file.Custom Icon
        8. Select  Advanced(optional).
        9. Select  Additional Exclusions(optional).
        10. Select  Version Information(optional).
        11. Select  Windows Security(optional).
        12. Select  Shared Variable Deployment(optional).
        13. Select  Run-Time Languages(optional).
        14. Select  Pre/Post Build Actions(optional).
        15. Navigate to Preview.
          Once the preview is generated without errors, go ahead and build the EXE by clicking on the Build button at the bottom(circled in red).
        16. To run the EXE, either
          – go to the destination directory path provided by you while building EXE. Double click on application(with default icon) to launch it. orEXE Launch– Right click on the build in the project explorer and select run. This will also launch the exe.EXE Run

Leave a Reply