Chapter 8 Distributing Libraries andFunction Panels
LabWindows/CVI Programmer Reference Manual 8-2
©
National Instruments Corporation
To add the libraries to the user’s Library menu under W ind ows 3 .1 and UNIX, your modini
command file must be:
add Libraries LibraryFPFile "c:\newlib\lib1.fp"
add Libraries LibraryFPFile "c:\newlib\lib2.fp"
After the user installs the library files, the modini program must be run on the user’s disk
using cvi.ini and the command file.
To add the libraries to the user’s Library menu under Windows 95/NT, your modreg
command file must be:
setkey [HKEY_CURRENT_USER\Software\National Instruments]
appendkey CVI\@latestVersion
add Libraries LibraryFPFile "c:\newlib\lib1.fp"
add Libraries 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.
Caution LabWindows/CVI must not be running when you use the modini or
modreg
program to modify cvi.ini or the Registry. If LabWindows/CVI is running while
you use these programs, you will lose your changes.
Specifying Library Dependencies
When one library you distribute is dependent upon another library you distribute, you can
specify this dependency in the function panel file for the dependent library. When
LabWindows/CVI loads the dependent library, it attempts to load the libraries upon which it
depends. Use the .FP Auto-Load List command in the Edit menu of the Function Tree Editor
window of the dependent library to list the .fp files of the libraries upon which it depends.
Refer to the Function Tree Editor chapter of the LabWindows/CVI Instrument Driver
Developers Guide for details on this command.
LabWindows/CVI can find the required libraries most easily when they are all in the same
directory as the dependent library. When you cannot put them in the same directory , you must
add the directories in which the required libraries reside to the user’s Instrument Directories
list. The user can manually enter this information using the Instrument Directories
command in the Project window Options menu. Also, you can add to the Instrument
Directories list by editing cvi.ini under Windows 3.1, .cvi.ini under UNIX, or the
Registry under Windows 95/NT.
!

00ProRef.book : 06chap08.fm Page 2 Monday, March 9, 1998 3:23 PM