Using LabWindows/CVI Libraries in External Compilers【转】

Using LabWindows/CVI Libraries in External Compilers

NI LabWindows™/CVI™ 9.0 Help
October 2008

NI Part Number:
370051M-01

»View Product Info

You can use the LabWindows/CVI libraries in either of the compatible external compilers by creating executables and DLLs that call the LabWindows/CVI libraries. LabWindows/CVI ships with the run-time DLLs that contain all the libraries, and executable files you create in LabWindows/CVI also use these DLLs.

LabWindows/CVI installs a startup library and DLL import libraries, all of which are compatible with your external compiler, in the borland and msvc folders of following locations:

  • CVIxx/extlib
  • National Instruments/Shared/CVI/Extlib
  • Windows Vista: ProgramData/National Instruments/CVIxx/extlib
  • Windows XP/2000: Documents and Settings/All Users/Application Data/National Instruments/CVIxx/extlib
NoteNote  Never use the .lib files in the CVIxx/bin/borland, CVIxx/bin/msvc, National Instruments/Shared/CVI/Bin/borland, or National Instruments/Shared/CVI/Bin/msvc directories in an external compiler.

You always must include the following two libraries in your external compiler project. These libraries are located in the CVIxx/extlib/borland and CVIxx/extlib/msvc directory.

  • cvisupp.lib—Startup library
  • cvirt.lib—Import library to DLL containing the following libraries:

    • User Interface Library
    • Formatting and I/O Library
    • RS-232 Library
    • DDE Support Library
    • Real-Time Utility Library
    • TCP Support Library
    • UDP Support Library
    • Utility Library
NoteNote  The Real-Time Utility Library is available when you install the LabWindows/CVI Real-Time Module. For more information about this library, refer to the LabWindows/CVI Real-Time Module Help»Real-Time Utility Library section of this help file.

The following table lists the DLL import library files you can add to your external compiler project and the directories where those files are located on your computer. The DLL import library files are located in the borland and msvc folders of the directories listed in the table.

Import Library FileLibraryLocation
analysis.libAnalysis or Advanced Analysis LibraryWindows XP/2000: Documents and Settings/All Users/Application Data/National Instruments/CVIxx/extlib

Windows Vista: ProgramData/National Instruments/CVIxx/extlib
cviauto.libActiveX LibraryCVIxx/extlib
cviddc.libDIAdem Connectivity LibraryCVIxx/extlib
cvidotnet.lib.NET LibraryCVIxx/extlib
cvintwrk.libInternet LibraryCVIxx/extlib
cvinetv.libNetwork Variable LibraryCVIxx/extlib
cvitdms.libTDM Streaming LibraryCVIxx/extlib
dataacq.libTraditional NI-DAQ LibraryCVIxx/extlib
gpib.libGPIB/GPIB 488.2 LibraryCVIxx/extlib
ivi.libIVI LibraryNational Instruments/Shared/CVI/Extlib
nican.libNI-CAN LibraryNational Instruments/Shared/CVI/Extlib
nidaqmx.libNI-DAQmx LibraryNational Instruments/Shared/CVI/Extlib
nivxi.libVXI LibraryCVIxx/extlib
visa.libVISA LibraryNational Instruments/Shared/CVI/Extlib

NoteNote  Import library files for National Instruments hardware libraries might be located in CVIxx/extlib instead.

If you use an instrument driver that makes references to both the GPIB/GPIB 488.2 and VXI Libraries, you can include both gpib.lib and nivxi.lib to resolve the references to symbols in those libraries. If you do not have access to one of these files, you can replace it with one of following files, located in CVIxx/extlib/borland and CVIxx/extlib/msvc:

  • gpibstub.obj, which includes stub GPIB functions
  • vxistub.obj, which includes stub VXI functions

If you use functions in the Programmer's Toolbox, include CVIxx/toolslib/toolbox/borland/toolbox.obj or CVIxx/toolslib/toolbox/msvc/toolbox.obj in your external compiler project.

If you use an external compiler that requires a WinMain entry point, the optional library cviwmain.lib allows you to define only main in your program. The cviwmain.lib library file contains WinMain function that calls main.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值