You can use the LabVIEW Application Builder to build stand-alone real-time applications that run when you power on an RT target.
Complete the following steps to build a stand-alone real-time application for an RT target.
- Open the project you want to use to build the stand-alone real-time application.
- Right-click Build Specifications under the RT target and select New»Real-Time Application from the shortcut menu to display the Real-Time Application Properties dialog box.
- Complete the following items on the Information page of the Real-Time Application Properties dialog box.
- Enter a name for the build specification in the Build specification name text box. This name appears under Build Specifications. The name must be unique among other build specification names under the RT target.
- Enter a name for the stand-alone real-time application in the Executable filename text box. Stand-alone real-time applications must have a .rtexe extension.
- Explore the remaining items on the Application Information page.
- Complete the following items on the Source Files page.
- From the Project Files tree, select the VI you want to define as a startup VI, also known as a top-level VI, for the stand-alone real-time application. Startup VIs open and run when you power on the RT target. You must define at least one VI as a startup VI for each stand-alone real-time application you build.
- Click the right arrow button next to the Startup VIs listbox to move the selected VIs into the Startup VIs listbox.
- From the Project Files tree, select the items you want to define as dynamically called VIs or support files, such as VIs you want to call using the VI Server or text files that you read from a VI.
- Click the right arrow button next to the Dynamic VIs and Support Files listbox to move the selected items into the Dynamic VIs and Support Files listbox.
 | Note You cannot include a polymorphic VI in the Startup VIs or Dynamic VIs and Support Files listboxes. Use an instance of the polymorphic VI instead. |
- From the Destinations page, configure destination settings and add destination directories for the stand-alone real-time application.
- From the Source File Settings page, edit destinations and properties for individual files and folders in the stand-alone real-time application.
 |
Note If you plan to distribute a stand-alone application that uses shared variables, do not include the .lvlib file in an LLB or in the executable. Change the Destination of the .lvlib file to a destination outside the executable or LLB. |
- From the Advanced page, configure advanced settings for the stand-alone real-time application.
- From the Preview page, click the Generate Preview button to review the generated files for the stand-alone real-time application.
 |
Note Save changes to VIs in memory before you create or edit a build specification to ensure that the preview is accurate. |
- Click the OK button to update the build specification settings in the project and close the dialog box. The build specification name appears in the project under Build Specifications of the RT target.
- Save the project to save the build specification settings.
- Right-click the build specification and select Build from the shortcut menu to build the stand-alone real-time application. You can find the resulting stand-alone real-time application in the directory specified on the Destinations page of the Real-Time Application Properties dialog box. You also can click the Build button in the Application Properties dialog box to update the build specification and build the application.
- (Optional) Run the built application on the RT target.