©
National Instruments Corporation 8-1 LabWindows/CVI Programmer Reference Manual
8
Distributing Libraries and Function Panels
This chapter describes how to distribute libraries, add libraries to a user’s Library menu, and
specify library dependencies.

How to Distribute Libraries

You can distribute libraries for other users to include in their Library menu. You must create
a function panel (.fp) for each library program file. If you do not want to develop function
panels for the library functions, create a .fp file without any classes or functions. In that case,
LabWindows/CVI loads the library at startup but does not include the library name in the
Library menu. This is useful when the library supports other libraries and contains no
user-callable functions.

Adding Libraries to User’s Library Menu

Normally, users must manually add libraries to the Library menu using the Library Options
command in the Project window Options menu. However, you can insert your libraries into
the user’s Library menu by modifying the user’s cvi.ini file under Windows 3.1,
.cvi.ini under UNIX, or the Registry under Windows 95/NT.
Under Windows 3.1 and UNIX, the modini program is in the LabWindows/CVI bin
subdirectory for this purpose. A documentation file called modini.doc and the source code
are in the same directory.
Under Windows 95/NT, the modreg program is in the LabWindows/CVI bin subdirectory
for this purpose. A documentation file called modreg.doc and the source code are 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

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