Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
49 ratings:
 3.89 out of 5     Rate this Document

Setting LabVIEW Preferences For a Windows Executable

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: Why Don't Stand-alone Executables Automatically Use the Preferences Set In LabVIEW?

Solution:
Preferences for the LabVIEW development environment are stored in an .ini file. The settings in the .ini file affect many properties of the executable, including fonts, thread configuration, front panel settings (such as smooth updates for indicators), and VISA settings (synchronous vs. asynchronous). Stand-alone executables created in LabVIEW also read preferences from an .ini file, if it exists. There are two methods to set LabVIEW preferences for a stand-alone executable previous to LabVIEW 8. The first is the easiest.

First Method
  1. Build the Executable (YourApp.exe).
  2. Run it on the build machine, this will automatically create an .ini file named “YourApp.ini” in the same directory as the executable.
  3. Edit the new ini file to alter properties of the executable.

Second Method
  1. Make a copy of the labview.ini file, which resides in the labview directory.
  2. Rename the copy VIname.ini, where VIname is the name of the stand-alone executable.
  3. Open VIname.ini and change the first line, [LabVIEW], to [VIname].
  4. Save and close VIname.ini.
  5. Move VIname.ini to the same directory as the stand-alone executable.

For distribution, create the .ini file on the build machine, and include it in the distribution so that it installs to the same folder as the executable.


Related Links: LabVIEW Support: Application Builder Troubleshooting Wizard
KnowledgeBase 32LCR9RF: Setting LabVIEW Preferences for a Mac OS Executable
KnowledgeBase 2DBE3DG4: [Sun, Linux] Copying the Preferences Used under the Development System to a LabVIEW Executable

Attachments:





Report Date: 02/05/1996
Last Updated: 05/05/2006
Document ID: 0I4E2303

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit