Using a Configuration File with a Stand-Alone Application

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

You can use a LabVIEW configuration file or another, custom, configuration file with a LabVIEW stand-alone application.

LabVIEW Configuration Files

If you select to use the LabVIEW configuration file with a stand-alone application, LabVIEW creates a configuration file that includes a subset of the configuration tokens that appear in the LabVIEW configuration file in the labview directory. You can configure additional build specification settings using the Application Properties dialog box. For example, if you select Enable debugging from the Advanced page of the Application Properties dialog box, LabVIEW adds debugging tokens to the configuration file of the stand-alone application.

Complete the following steps to use the LabVIEW configuration file in a stand-alone application.

  1. In the Project Explorer window, right-click Build Specifications and select New»Application from the shortcut menu. If you previously created a build specification for the application, double-click the build in the Project Explorer window to edit the build.
  2. On the Advanced page of the Application Properties dialog box, ensure that the Use custom configuration file checkbox is not enabled.
  3. (Optional) Make other selections on the Advanced page. Some of these changes add configuration tokens to the configuration file of the stand-alone application.
  4. Click the OK button to apply the changes and close the dialog box.

Custom Configuration Files

If you use a custom configuration file with a stand-alone application, LabVIEW uses the configuration file you specify as a template. LabVIEW adds additional tokens to the configuration file you specify depending on the options you select in the Application Properties dialog box. For example, if you select Enable debugging from the Advanced page of the Application Properties dialog box, LabVIEW adds debugging tokens to the custom configuration file you included.

Complete the following steps to use a custom configuration file in a stand-alone application.

  1. In the Project Explorer window, right-click Build Specifications and select New»Application from the shortcut menu. If you previously created a build specification for the application, double-click the build in the Project Explorer window to edit the build.
  2. On the Advanced page of the Application Properties dialog box, place a checkmark in the Use custom configuration file checkbox. The Select Project File dialog box appears.
  3. Select the configuration file you want to include from the Files in Project list.

    If the file you want to include is not in the project, complete the following steps.
    1. Click the Add button. A file dialog box appears.
    2. Browse to the file you want to include and click the Add button. The dialog boxes close and the file you selected appears in the Configuration file in project text box on the Advanced page of the Application Properties dialog box.
  4. (Optional) Make other selections on the Advanced page. Some of these changes add configuration tokens to the custom configuration file.
  5. Click the OK button to apply the changes and close the dialog box.

WAS THIS ARTICLE HELPFUL?

Not Helpful