Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Copying LabVIEW Work Environment Options

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-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, remove the checkmark from the Use the default LabVIEW Configuration file checkbox. Click the Browse Project button next to the Configuration file in project text box to select the configuration file to use. If the configuration file is not in the project, you can navigate to the file and add it to the project from the Select Project File dialog box. After you build the application, open the configuration file to verify that all settings are correct.

Windows

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

Mac OS

The configuration file is named myapp Preferences, where myapp is the name of the application and is in the same directory as myapp.

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 .labviewrc and contains the preferences you set for LabVIEW, as well as any application built with LabVIEW.

The preference entries in the .labviewrc file for this application are in the following format:

myapp.preference_name: value

where myapp is the name of the application.

To use a preferences file other than .labviewrc, 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.


Resources


 

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