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:
- Open New project. Add all vis, controls, files… (everything that is required for running your main vi) under ‘My Computer’. Save the project.
- Right click on Build specifications and select New>>Application(EXE), which will open up ‘Application Properties” window.
- 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
- 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.
- Select Destinations(optional).
- Select Source file settings (optional).
- 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,
- Select Advanced(optional).
- Select Additional Exclusions(optional).
- Select Version Information(optional).
- Select Windows Security(optional).
- Select Shared Variable Deployment(optional).
- Select Run-Time Languages(optional).
- Select Pre/Post Build Actions(optional).
- 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).
- 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. or– Right click on the build in the project explorer and select run. This will also launch the exe.