Copying Your LabVIEW Work Environment Options

You can copy the options you set in your LabVIEW work environment to the stand-alone application you build. The stand-alone application does not automatically use the options that you set in your LabVIEW work environment.

Windows

Complete the following steps to use your LabVIEW work environment options for the stand-alone application you build. Assume the application is myapp.exe.

  1. Make a copy of your labview.ini file. Rename the copy myapp.ini, where myapp is the name of your application.
  2. Change the first line of myapp.ini from [labview] to [myapp].
  3. Place myapp.ini in the same directory as myapp.exe.

Macintosh

Complete the following steps to use your LabVIEW work environment options for the stand-alone application you build. Assume the application is myapp.

  1. Make a copy of your labview Preferences file. Rename the copy myapp Preferences, where myapp is the name of your application.
  2. Place myapp Preferences in the same directory as myapp.

    If the preferences file does not reside in the same directory as the executable, you can launch the executable with the command-line option -pref <path to preferences file> to specify an alternative location.

UNIX

The preferences file for an application can reside either in your home directory or in a location defined by you. The file in your home directory always is named .labviewrc and contains your preferences for LabVIEW, as well as any application built with LabVIEW.

For example, suppose you have an application named myapp. The preference entries in the .labviewrc file for this application are in the format:

myapp.preference_name: value

To use a preferences file other than .labviewrc, you can launch the executable with the command-line option -pref <path to preferences file>.