LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

Adding Libraries to a User's Library Tree

Normally, a user must manually add libraries to the Library Tree using the Library»Customize command in the Workspace window. However, you can insert your libraries into the user's Library Tree by modifying the user's Registry.

The modreg program is in the LabWindows/CVI bin subdirectory for this purpose. A documentation file called modreg.txt is in the same directory.

Assume that you install function panels for two libraries in the following location:

c:\newlib\lib1.fp
c:\newlib\lib2.fp

To add the libraries to the user's Library Tree, in a specific version of LabWindows/CVI, use the following modreg command file:

setkey [HKEY_LOCAL_MACHINE\Software\National Instruments]
appendkey CVI\major.minor
add AutoloadLibraries LibraryFPFile "c:\newlib\lib1.fp"
add AutoloadLibraries LibraryFPFile "c:\newlib\lib2.fp"

major.minor refers to the LabWindows/CVI version, for example 9.1. Refer to the LabWindows/CVI Year-Based and Major.Minor.Tiny Version Equivalents for the current major.minor version equivalent.

Use the following modreg command file to add the libraries to all versions of LabWindows/CVI installed on a computer:

setkey [HKEY_LOCAL_MACHINE\Software\National Instruments]
appendkey CVI\Shared
add AutoloadLibraries LibraryFPFile "c:\newlib\lib1.fp"
add AutoloadLibraries LibraryFPFile "c:\newlib\lib2.fp"

After the user installs the library files, the modreg program must be run on the user's disk using the command file.

Note  Make sure that LabWindows/CVI is not running when you use the modreg program to modify the Registry. If LabWindows/CVI is running while you use this program, you will lose your changes.

Log in to get a better experience