Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Copying LabVIEW Work Environment Options

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

You can copy the options you set in the LabVIEW work environment to the stand-alone application you build. By default, the application automatically uses the options that you set in the LabVIEW work environment.

From the Advanced page of the Application Properties dialog box, place a checkmark in the Use custom configuration file checkbox. Select a configuration file in the project from the Select Project File dialog box. If the configuration file is not in the project, click the Add button and navigate to the file. After you build the application, open the configuration file to verify that all settings are correct.

Windows

The configuration file is named myapp.ini, where myapp is the name of the application.

Mac OS X

The configuration file is named myapp.app x Preferences, where myapp is the name of the application and x is the LabVIEW version currently in use.

If the work environment settings did not copy correctly to the configuration file, complete the following steps to manually add the LabVIEW work environment options you set to the stand-alone application you built.

  1. Make a copy of the labview Preferences file. Rename the copy myapp Preferences.
  2. Replace the myapp Preferences file, which is in the same directory as myapp.

Linux

If the settings did not copy correctly to the configuration file, you might need to manually add the LabVIEW work environment options you set to the stand-alone application you built.

The preferences file for an application can reside either in the home directory or in a location you define. The file in the home directory always is named /home/<username>/natinst/.config/LabVIEW-x/labview.conf and contains the preferences you set for LabVIEW, as well as any application built with LabVIEW.

The preference entries in the /home/<username>/natinst/.config/LabVIEW-x/labview.conf file for this application are in the following format:

preference_name = value

To use a preferences file other than /home/<username>/natinst/.config/LabVIEW-x/labview.conf, you can launch the application with the command-line option -pref <path to preferences file>.

LabVIEW also searches for a myapp.ini file in the same directory as the stand-alone application.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit