<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jpdrolet</id>
	<title>LabVIEW Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jpdrolet"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/wiki/Special:Contributions/Jpdrolet"/>
	<updated>2026-05-09T02:39:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=EXE_has_the_wrong_date&amp;diff=3871</id>
		<title>EXE has the wrong date</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=EXE_has_the_wrong_date&amp;diff=3871"/>
		<updated>2009-01-29T22:38:23Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Under some operating systems a built application in LabVIEW versions 5 and 6 (specifically Windows based machines) has the last modified date reported by Windows for the application exe file consistently set to the same value and not to the current date and time? This occurs regardless of the settings of the system clock. It appears that this is a bug in the Windows operating system. As far as we are aware, Microsoft has been aware of it for at least three years but the bug does exist at least under Windows 95 and 98. It is unknown whether the newer versions of Windows (including NT) still exhibit this problem.&lt;br /&gt;
&lt;br /&gt;
The problem occurs when the LabVIEW Appliction Builder copies the standalone stub from the APPLIBS directory (applib.llb) to the exe file and appends the VI code to it. The Windows functions used for this should modify the modified date of the file but leave it at the date of the original stub file. Although NI could theoretically add a manipulation to the Application Builder which really &amp;quot;touches&amp;quot; the file to update the modification date, this is only a workaround for someone elses bug.&lt;br /&gt;
&lt;br /&gt;
There are a couple of user workarounds. If you are not parcelling up your application into distribution disks you can &amp;quot;touch&amp;quot; the built exe with the linux utility of the same name (free downloads of win32 based touch utilities are available on the net; e.g. from the CygWin project.&lt;br /&gt;
&lt;br /&gt;
[http://sources.redhat.com/cygwin/ http://sources.redhat.com/cygwin/]&lt;br /&gt;
&lt;br /&gt;
Alternatively you could write a small application that reads one byte of the file and then writes that byte back to the file, thereby updating the modification time and date.You could also modify the applib.llb stub file directly just before building the application with either of the touch methods described above. This modification of the stub file will at least ensure that the files heading for the distribution disks end up with a file time and date close to that of the final build process.&lt;br /&gt;
&lt;br /&gt;
[[category:building executables]]&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Refnum_descriptor&amp;diff=3509</id>
		<title>Refnum descriptor</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Refnum_descriptor&amp;diff=3509"/>
		<updated>2008-03-17T23:36:14Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: addition of 0x0A&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following table lists the subtype codes used in the [[type descriptor]] of the [[refnum data type]].&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Sub-Type Code&lt;br /&gt;
! Refnum Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00&lt;br /&gt;
| Generic&lt;br /&gt;
| the generic type 0x00 is generated only by getting the TD of the &amp;quot;Not a Refnum Constant&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x01&lt;br /&gt;
| Datalog File Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x02&lt;br /&gt;
| Byte Stream File Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x03&lt;br /&gt;
| Device Refnum&lt;br /&gt;
| used in legacy Serial VIs&lt;br /&gt;
|-&lt;br /&gt;
| 0x04&lt;br /&gt;
| Occurence Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x05&lt;br /&gt;
| TCP Connection Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x06&lt;br /&gt;
| VISA Refnum (Obsolete)&lt;br /&gt;
| obsolete VISA refnum type up to LabVIEW 5.1&lt;br /&gt;
|-&lt;br /&gt;
| 0x07&lt;br /&gt;
| Automation Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x08&lt;br /&gt;
| VI Server Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x09&lt;br /&gt;
| Menu Refnum&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| 0x0A&lt;br /&gt;
| IVI Refnum (Obsolete)&lt;br /&gt;
| obsolete IVI refnum type up to LabVIEW 5.1 &lt;br /&gt;
|-&lt;br /&gt;
| 0x0B&lt;br /&gt;
| IMAQ Session&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x0D&lt;br /&gt;
| DataSocket Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x0E&lt;br /&gt;
| VISA Resource&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x0F&lt;br /&gt;
| IVI Logical Name&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x10&lt;br /&gt;
| UDP Connection Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x11&lt;br /&gt;
| Notifier Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x12&lt;br /&gt;
| Queue Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x13&lt;br /&gt;
| IrDA Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x14&lt;br /&gt;
| Storage Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x15&lt;br /&gt;
| FieldPoint IO Point/Motion Resource&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x17&lt;br /&gt;
| Event Registration Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x18&lt;br /&gt;
| .NET Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x19&lt;br /&gt;
| User Event Refnum&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x1B&lt;br /&gt;
| Event Callback&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 0x1F&lt;br /&gt;
| Bluetooth Refnum&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[type descriptor]]&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Shell_Command&amp;diff=1398</id>
		<title>Shell Command</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Shell_Command&amp;diff=1398"/>
		<updated>2007-05-09T20:03:43Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The exec VI function can be used to send shell commands. Include the shell call with the commands that are desired. Under Windows 2K/XP/Vista operating systems the call is to &#039;&#039;&#039;cmd.exe&#039;&#039;&#039;. For example, the string to copy filea to a drive would be&lt;br /&gt;
[code]&lt;br /&gt;
cmd /C &amp;quot;copy filea a:&amp;quot;&lt;br /&gt;
[/code]&lt;br /&gt;
with the arguments enclosed in quotes. The exact shell call will depend on the operating system. For Windows 98/ME it is &#039;&#039;&#039;command.com&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To open a document with its associated application, use the &#039;&#039;&#039;start&#039;&#039;&#039; command.&lt;br /&gt;
[code]&lt;br /&gt;
cmd /C &amp;quot;start &amp;quot;&amp;quot; &amp;quot;c:\document.txt&amp;quot;&lt;br /&gt;
[/code]&lt;br /&gt;
will open &#039;&#039;document.txt&#039;&#039; with Notepad (Windows default).&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Shell_Command&amp;diff=1397</id>
		<title>Shell Command</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Shell_Command&amp;diff=1397"/>
		<updated>2007-05-09T20:02:19Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The exec VI function can be used to send shell commands. Include the shell call with the commands that are desired. Under Windows 2K/XP/Vista operating systems the call is to &#039;&#039;&#039;cmd.exe&#039;&#039;&#039;. For example, the string to copy filea to a drive would be&lt;br /&gt;
[code]&lt;br /&gt;
cmd /C &amp;quot;copy filea a:&amp;quot;&lt;br /&gt;
[/code]&lt;br /&gt;
with the arguments enclosed in quotes. The exact shell call will depend on the operating system. For Windows 98/ME it is &#039;&#039;command.com&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To open a document with its associated application, use the &#039;&#039;&#039;start&#039;&#039;&#039; command.&lt;br /&gt;
[code]&lt;br /&gt;
cmd /C start &amp;quot;&amp;quot; &amp;quot;c:\document.txt&amp;quot;&lt;br /&gt;
[/code]&lt;br /&gt;
will open &#039;&#039;document.txt&#039;&#039; with Notepad (Windows default).&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=715</id>
		<title>Custom LabVIEW configuration file</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=715"/>
		<updated>2007-04-04T14:30:33Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Customize LabVIEW.ini to your project&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;In the following, project has a pre-LabVIEW 8 meaning e.g. a collection of related VIs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default labview.ini for all their projects, ignoring the benefits of having one preference file for each project. Maybe this is due to the fact that it is not straightforward to open LabVIEW with a specific ini file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using LabVIEW with a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Command Line&#039;&#039;&#039;&lt;br /&gt;
From the command line you have to specify the ini file with the -pref switch:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; -pref &amp;quot;c:\MyProject\labview.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is not a very convenient method to start LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Shortcuts&#039;&#039;&#039;&lt;br /&gt;
Another method is to create a shortcut with the above command line. For each project edit a different shortcut specifying the ini file. This is far more convenient than the command line &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Custom file extensions&#039;&#039;&#039;&lt;br /&gt;
Create a custom file extensions for LabVIEW ini files. Change the file extension of the preference file to something like *.lv82ini. Then in Windows create this file extension specifying the following action:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
With this setup you can start LabVIEW with a custom ini file just by double clicking on the lv82ini file of the project. If you work with more than one version of LabVIEW, create one file extension for each version like *.lv80ini and *.lv71ini with actions using the corresponding LabVIEW executable. That allows to conveniently start with the LabVIEW version and the preference file of the project.&lt;br /&gt;
&lt;br /&gt;
Already invoking LabVIEW from a shortcut or an action on a file extension, we can also make the command to run a VI. For example, setting the file extension action to run&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; &amp;quot;c:\tools\lv_start.vi&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
will open the VI lv_start.vi when launching LabVIEW from a preference file. That VI, set to run when opened, can execute any suitable initialization task and load/run VIs specific to the project looking into the project directory (see below).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Benefits of a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Default Path&#039;&#039;&#039;&lt;br /&gt;
The first thing to do using an ini file customized for your project is to set the default path setting to the project root path. You will soon realize that the file dialogs will show your project path as the startup directory rather than the LabVIEW directory. The file constant &amp;quot;Default Directory&amp;quot; will return the project directory so it is easy to build paths relative to the project directory without harcoding it. If you move the project folder, only change the default directory setting and relative paths will change accordingly. Moreover, in a built application, this default directory will default to the application directory so you can keep the same directory structure and relative paths in the built application without changing the code or checking if the application runs in Development or Run-Time LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Browse history&#039;&#039;&#039;&lt;br /&gt;
The browse history (recently opened files and used directories) is stored in the ini file. Custom ini files allow to keep a different history for each project so in the list of recently opened files you see files opened whitin this project rather than files opened in an unrelated project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Source Code Control (SCC)&#039;&#039;&#039;&lt;br /&gt;
Since LabVIEW 8 SCC settings are stored in the preference file. Customized ini files then allow to have different SCC settings and providers for different projects. In LabVIEW 7.1 and before, SCC settings are stored in files kept in the default directory so if you take care of setting the default directory to the project directory, you can also have different SCC setting for each project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Other Project dependent Settings&#039;&#039;&#039;&lt;br /&gt;
Other settings might be project dependent like the palettes, search paths, decimal separator etc. All these can be set independantly for each project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Project custom ini file is typically stored in the project directory and can be copied from the default labview.ini or from some convenient template. It is also logical to keep this file under SCC to make sure that LabVIEW is correctly configured for the project usage. For example, using an incorrect decimal separator setting can easily break an application.&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=714</id>
		<title>Custom LabVIEW configuration file</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=714"/>
		<updated>2007-04-04T14:28:47Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: /* &amp;#039;&amp;#039;&amp;#039;Customize LabVIEW.ini to your project&amp;#039;&amp;#039;&amp;#039; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Customize LabVIEW.ini to your project&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;In the following, project has a pre-LabVIEW 8 meaning e.g. a collection of related VIs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default labview.ini for all their projects, ignoring the benefits of having one preference file for each project. Maybe this is due to the fact that it is not straightforward to open LabVIEW with a specific ini file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using LabVIEW with a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Command Line&#039;&#039;&#039;&lt;br /&gt;
From the command line you have to specify the ini file with the -pref switch:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; -pref &amp;quot;c:\MyProject\labview.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is not a very convenient method to start LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Shortcuts&#039;&#039;&#039;&lt;br /&gt;
Another method is to create a shortcut with the above command line. For each project edit a different shortcut specifying the ini file. This is far more convenient than the command line &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Custom file extensions&#039;&#039;&#039;&lt;br /&gt;
Create a custom file extensions for LabVIEW ini files. Change the file extension of the preference file to something like *.lv82ini. Then in Windows create this file extension specifying the following action:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
With this setup you can start LabVIEW with a custom ini file just by double clicking on the lv82ini file of the project. If you work with more than one version of LabVIEW, create one file extension for each version like *.lv80ini and *.lv71ini with actions using the corresponding LabVIEW executable. That allows to conveniently start with the LabVIEW version and the preference file of the project.&lt;br /&gt;
&lt;br /&gt;
Invoking LabVIEW from a shortcut or an action on a file extension, we can also make the command to run a VI. For example, setting the file extension action to run&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; &amp;quot;c:\tools\lv_start.vi&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
will open the VI lv_start.vi when launching LabVIEW from a preference file. That VI, set to run when opened, can execute any suitable initialization task and load/run VIs specific to the project looking into the project directory (see below).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Benefits of a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Default Path&#039;&#039;&#039;&lt;br /&gt;
The first thing to do using an ini file customized for your project is to set the default path setting to the project root path. You will soon realize that the file dialogs will show your project path as the startup directory rather than the LabVIEW directory. The file constant &amp;quot;Default Directory&amp;quot; will return the project directory so it is easy to build paths relative to the project directory without harcoding it. If you move the project folder, only change the default directory setting and relative paths will change accordingly. Moreover, in a built application, this default directory will default to the application directory so you can keep the same directory structure and relative paths in the built application without changing the code or checking if the application runs in Development or Run-Time LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Browse history&#039;&#039;&#039;&lt;br /&gt;
The browse history (recently opened files and used directories) is stored in the ini file. Custom ini files allow to keep a different history for each project so in the list of recently opened files you see files opened whitin this project rather than files opened in an unrelated project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Source Code Control (SCC)&#039;&#039;&#039;&lt;br /&gt;
Since LabVIEW 8 SCC settings are stored in the preference file. Customized ini files then allow to have different SCC settings and providers for different projects. In LabVIEW 7.1 and before, SCC settings are stored in files kept in the default directory so if you take care of setting the default directory to the project directory, you can also have different SCC setting for each project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Other Project dependent Settings&#039;&#039;&#039;&lt;br /&gt;
Other settings might be project dependent like the palettes, search paths, decimal separator etc. All these can be set independantly for each project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Project custom ini file is typically stored in the project directory and can be copied from the default labview.ini or from some convenient template. It is also logical to keep this file under SCC to make sure that LabVIEW is correctly configured for the project usage. For example, using an incorrect decimal separator setting can easily break an application.&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=713</id>
		<title>Custom LabVIEW configuration file</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=713"/>
		<updated>2007-04-04T12:50:03Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Customize LabVIEW.ini to your project&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;In the following, project has a pre-LabVIEW 8 meaning e.g. a collection of related VIs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default labview.ini for all their projects, ignoring the benefits of having one preference file for each project. Maybe this is due to the fact that it is not straightforward to open LabVIEW with a specific ini file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using LabVIEW with a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Command Line&#039;&#039;&#039;&lt;br /&gt;
From the command line you have to specify the ini file with the -pref switch:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;c:\MyProject\labview.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is not a very convenient method to start LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Shortcuts&#039;&#039;&#039;&lt;br /&gt;
Another method is to create a shortcut with the above command line. For each project edit a different shortcut specifying the ini file. This is far more convenient than the command line &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Custom file extensions&#039;&#039;&#039;&lt;br /&gt;
Create a custom file extensions for LabVIEW ini files. Change the file extension of the preference file to something like *.lv82ini. Then in Windows create this file extension specifying the following action:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
With this setup you can start LabVIEW with a custom ini file just by double clicking on the lv82ini file of the project. If you work with more than one version of LabVIEW, create one file extension for each version like *.lv80ini and *.lv71ini with actions using the corresponding LabVIEW executable. That allows to conveniently start with the LabVIEW version and the preference file of the project.&lt;br /&gt;
&lt;br /&gt;
Invoking LabVIEW from a shortcut or an action on a file extension, we can also make the command to run a VI. For example, setting the file extension action to run&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; &amp;quot;c:\tools\lv_start.vi&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
will open the VI lv_start.vi when launching LabVIEW from a preference file. That VI, set to run when opened, can execute any suitable initialization task and load/run VIs specific to the project looking into the project directory (see below).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Benefits of a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Default Path&#039;&#039;&#039;&lt;br /&gt;
The first thing to do using an ini file customized for your project is to set the default path setting to the project root path. You will soon realize that the file dialogs will show your project path as the startup directory rather than the LabVIEW directory. The file constant &amp;quot;Default Directory&amp;quot; will return the project directory so it is easy to build paths relative to the project directory without harcoding it. If you move the project folder, only change the default directory setting and relative paths will change accordingly. Moreover, in a built application, this default directory will default to the application directory so you can keep the same directory structure and relative paths in the built application without changing the code or checking if the application runs in Development or Run-Time LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Browse history&#039;&#039;&#039;&lt;br /&gt;
The browse history (recently opened files and used directories) is stored in the ini file. Custom ini files allow to keep a different history for each project so in the list of recently opened files you see files opened whitin this project rather than files opened in an unrelated project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Source Code Control (SCC)&#039;&#039;&#039;&lt;br /&gt;
Since LabVIEW 8 SCC settings are stored in the preference file. Customized ini files then allow to have different SCC settings and providers for different projects. In LabVIEW 7.1 and before, SCC settings are stored in files kept in the default directory so if you take care of setting the default directory to the project directory, you can also have different SCC setting for each project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Other Project dependent Settings&#039;&#039;&#039;&lt;br /&gt;
Other settings might be project dependent like the palettes, search paths, decimal separator etc. All these can be set independantly for each project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Project custom ini file is typically stored in the project directory and can be copied from the default labview.ini or from some convenient template. It is also logical to keep this file under SCC to make sure that LabVIEW is correctly configured for the project usage. For example, using an incorrect decimal separator setting can easily break an application.&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=712</id>
		<title>Custom LabVIEW configuration file</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=712"/>
		<updated>2007-04-04T12:46:53Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Customize LabVIEW.ini to your project&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default labview.ini for all their projects, ignoring the benefits of having one preference file for each project. Maybe this is due to the fact that it is not straightforward to open LabVIEW with a specific ini file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using LabVIEW with a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Command Line&#039;&#039;&#039;&lt;br /&gt;
From the command line you have to specify the ini file with the -pref switch:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;c:\MyProject\labview.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is not a very convenient method to start LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Shortcuts&#039;&#039;&#039;&lt;br /&gt;
Another method is to create a shortcut with the above command line. For each project edit a different shortcut specifying the ini file. This is far more convenient than the command line &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Custom file extensions&#039;&#039;&#039;&lt;br /&gt;
Create a custom file extensions for LabVIEW ini files. Change the file extension of the preference file to something like *.lv82ini. Then in Windows create this file extension specifying the following action:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
With this setup you can start LabVIEW with a custom ini file just by double clicking on the lv82ini file of the project. If you work with more than one version of LabVIEW, create one file extension for each version like *.lv80ini and *.lv71ini with actions using the corresponding LabVIEW executable. That allows to conveniently start with the LabVIEW version and the preference file of the project.&lt;br /&gt;
&lt;br /&gt;
Invoking LabVIEW from a shortcut or an action on a file extension, we can also make the command to run a VI. For example, setting the file extension action to run&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; &amp;quot;c:\tools\lv_start.vi&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
will open the VI lv_start.vi when launching LabVIEW from a preference file. That VI, set to run when opened, can execute any suitable initialization task and load/run VIs specific to the project looking into the project directory (see below).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Benefits of a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Default Path&#039;&#039;&#039;&lt;br /&gt;
The first thing to do using an ini file customized for your project is to set the default path setting to the project root path. You will soon realize that the file dialogs will show your project path as the startup directory rather than the LabVIEW directory. The file constant &amp;quot;Default Directory&amp;quot; will return the project directory so it is easy to build paths relative to the project directory without harcoding it. If you move the project folder, only change the default directory setting and relative paths will change accordingly. Moreover, in a built application, this default directory will default to the application directory so you can keep the same directory structure and relative paths in the built application without changing the code or checking if the application runs in Development or Run-Time LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Browse history&#039;&#039;&#039;&lt;br /&gt;
The browse history (recently opened files and used directories) is stored in the ini file. Custom ini files allow to keep a different history for each project so in the list of recently opened files you see files opened whitin this project rather than files opened in an unrelated project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Source Code Control (SCC)&#039;&#039;&#039;&lt;br /&gt;
Since LabVIEW 8 SCC settings are stored in the preference file. Customized ini files then allow to have different SCC settings and providers for different projects. In LabVIEW 7.1 and before, SCC settings are stored in files kept in the default directory so if you take care of setting the default directory to the project directory, you can also have different SCC setting for each project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Other Project dependent Settings&#039;&#039;&#039;&lt;br /&gt;
Other settings might be project dependent like the palettes, search paths, decimal separator etc. All these can be set independantly for each project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Project custom ini file is typically stored in the project directory and can be copied from the default labview.ini or from some convenient template. It is also logical to keep this file under SCC to make sure that LabVIEW is correctly configured for the project usage. For example, using an incorrect decimal separator setting can easily break an application.&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=711</id>
		<title>Custom LabVIEW configuration file</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Custom_LabVIEW_configuration_file&amp;diff=711"/>
		<updated>2007-04-04T12:32:30Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: New page: == &amp;#039;&amp;#039;&amp;#039;Customize LabVIEW.ini to your project&amp;#039;&amp;#039;&amp;#039; ==   The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Customize LabVIEW.ini to your project&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LabVIEW Preference file is stored by default in the LabVIEW installation directory. Often LabVIEW developpers use only this default labview.ini for all their projects, ignoring the benefits of having one preference file for each project. Maybe this is due to the fact that it is not straightforward to open LabVIEW with a specific ini file. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using LabVIEW with a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Command Line&#039;&#039;&#039;&lt;br /&gt;
From the command line you have to specify the ini file with the -pref switch:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;c:\MyProject\labview.ini&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is not a very convenient method to start LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Shortcuts&#039;&#039;&#039;&lt;br /&gt;
Another method is to create a shortcut with the above command line. For each project edit a different shortcut specifying the ini file. This is far more convenient than the command line &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Custom file extensions&#039;&#039;&#039;&lt;br /&gt;
Create a custom file extensions for LabVIEW ini files. Change the file extension of the preference file to something like *.lv82ini. Then in Windows create this file extension specifying the following action:&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
With this setup you can start LabVIEW with a custom ini file just by double clicking on the lv82ini file of the project. If you work with more than one version of LabVIEW, create one file extension for each version like *.lv80ini and *.lv71ini with actions using the corresponding LabVIEW executable. That allows to conveniently start with the LabVIEW version and the preference file of the project.&lt;br /&gt;
&lt;br /&gt;
Invoking LabVIEW from a shortcut or an action on a file extension, we can also make the command to run a VI. For example, setting the file extension action to run&lt;br /&gt;
&lt;br /&gt;
&amp;quot;c:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe&amp;quot; &amp;quot;c:\tools\lv_start.vi&amp;quot; -pref &amp;quot;%L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
will open the VI lv_start.vi when launching LabVIEW from a preference file. That VI, set to run when opened, can execute any suitable initialization task and load/run VIs specific to the project looking into the project directory (see below).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Benefits of a custom ini file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Default Path&#039;&#039;&#039;&lt;br /&gt;
The first thing to do using an ini file customized for your project is to set the default path setting to the project root path. You will soon realize that the file dialogs will show your project path as the startup directory rather than the LabVIEW directory. The file constant &amp;quot;Default Directory&amp;quot; will return the project directory so it is easy to build paths relative to the project directory without harcoding it. If you move the project folder, only change the default directory setting and relative paths will change accordingly. Moreover, in a built application, this default directory will default to the application directory so you can keep the same directory structure and relative paths in the built application without changing the code or checking if the application runs in Development or Run-Time LabVIEW. &lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Browse history&#039;&#039;&#039;&lt;br /&gt;
The browse history (recently opened files and used directories) is stored in the ini file. Custom ini files allow to keep a different history for each project so in the list of recently opened files you see files opened whitin this project rather than files opened in an unrelated project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Source Code Control (SCC)&#039;&#039;&#039;&lt;br /&gt;
Since LabVIEW 8 SCC settings are stored in the preference file. Customized ini files then allow to have different SCC settings and providers for different projects. In LabVIEW 7.1 and before, SCC settings are stored in files kept in the default directory so if you take care of setting the default directory to the project directory, you can also have different SCC setting for each project.&lt;br /&gt;
&lt;br /&gt;
- &#039;&#039;&#039;Other Project dependent Settings&#039;&#039;&#039;&lt;br /&gt;
Other settings might be project dependent like the palettes, search paths, decimal separator etc. All these can be set independantly for each project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Project custom ini file is typically stored in the project directory and can be copied from the default labview.ini or from some convenient template. It is also logical to keep this file under SCC to make sure that LabVIEW is correctly configured for the project usage. For example, using an incorrect decimal separator setting can easily break an application.&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Development_Environment&amp;diff=710</id>
		<title>Development Environment</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Development_Environment&amp;diff=710"/>
		<updated>2007-04-04T12:07:50Z</updated>

		<summary type="html">&lt;p&gt;Jpdrolet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the portal for information related to enhancing or modifying the LabVIEW Development environment.&lt;br /&gt;
&lt;br /&gt;
====Pages here:====&lt;br /&gt;
*[[How to do Menu Launch VIs]]&lt;br /&gt;
*[[Most Recently Used Folders in LV8.20]]&lt;br /&gt;
*[[LabVIEW ini File]]&lt;br /&gt;
*[[LabVIEW ini Settings]]&lt;br /&gt;
*[[LLB]]&lt;br /&gt;
*[[Multiple Instances of LabVIEW]]&lt;br /&gt;
*[[VI Icons]]&lt;br /&gt;
*[[Insane Objects]]&lt;/div&gt;</summary>
		<author><name>Jpdrolet</name></author>
	</entry>
</feed>