Chapter 3 Developing YourApplication
NI-DNET User Manual 3-2 ni.com
LabWindows/CVI
Within LabWindows/CVI, the NI-DNET function panel is located in
Library»NI-DNET. Like other LabWindows/CVI function panels, the
NI-DNET function panel provides help for each function and the ability to
generate code.
The reference for each NI-DNET function is provided in the NI-DNET
Programmer Reference Manual. You can access reference for each
function directly from within the function panel.
The header file for NI-DNET is nidnet.h. The library for NI-DNET is
nidnet.lib.
The NI-DNET software includes a full set of examples for
LabWindows/CVI. The NI-DNET examples are installed in the
LabWindows/CVI directory under samples\nidnet. Each example
provides a complete LabWindows/CVI project (.prj file). A description
of each example is provided in comments at the top of the .c file.
When you compile your LabWindows/CVI application for NI-DNET,
it is automatically linked with nidnet.lib, the link library for
LabWindows/CVI. When NI-DNET is installed, the installation program
checks to see which compatible C compiler you are using with
LabWindows/CVI (Microsoft or Borland), and copiesan appropriate
nidnet.lib for that compiler.
Microsoft Visual Basic
To create an NI-DNET application in Visual Basic, add the nidnet.bas
file to your project. This allows you to call any NI-DNET function file from
your code.
The nidnet.bas file is located in the MS Visual Basic folder of the
NI-DNET folder. The typical path to this folder is \Program Files\
National Instruments\NI-DNET\MS Visual Basic.
The reference for each NI-DNET function is provided in the NI-DNET
Programmer Reference Manual, which you can open from Start»All
Programs»National Instruments»NI-DNET.
You can find examples for Visual Basic in the examples subfolder of the
MS Visual Basic folder. Each example is in a separate folder. A .vbp
file with the same name as the example opens the Visual Basic project. A
description of the example is located in a Help form within the project.