Chapter 5
Developing The Application
NI-FBUS Hardware and Software User Manual
5-2
ni.com
You can find examples for the C language in the
MS VIsual C\examples
subfolder of the
NI-FBUS
folder. There are four sample programs:
nifbtest.c
,
nifb_mt.c
,
nifbdd.c
, and
nifb_list.c
. These files
provide you with some examples of the NI-FBUS Communications
Manager API usage. A description of each example is in comments at the
top of the
.c
file.
Visual Basic
The NI-FBUS software support Microsoft Visual Basic 6.0 version.
To create an application in Visual Basic, add the
Declares.bas
to your
project. The
Declares.bas
defines standard API calls to NI-FBUS
Communications Manager.
The
Declares.bas
are located in the
MS Visual Basic
folder of the
NI-FBUS
folder. The typical path to this folder is
\Program Files\
National Instruments\NI-FBUS\MS Visual Basic
.
The reference for each NI-FBUS API function is in Chapter 6,
. You can also refer to Chapter 4,
You can find example for Visual Basic in the
example
subfolder of
MS Visual Basic
folder. The
nifbusVBInterface.vbp
file is the
Visual Basic project of the example.
.NET Class Libraries
This section provides general information about the .NET class libraries
included with NI-FBUS Software, you can use the .NET class libraries to
develop complete F
OUNDATION
™
Fieldbus applications in Visual Basic
.NET and Visual C#.
NI-FBUS Software includes the following .NET class libraries:
•
Alert
•
Block
•
Device
•
FBDate
•
FBObject
•
FBTime