Chapter 6
Using Your GPIB-ENET/100 and NI-488.2
©
National Instruments Corporation
6-7
For more information about
ibic
, refer to Chapter 6,
ibic
, in the
NI-488.2M Software Reference Manual
.
Programming Considerations
Depending on the programming language you use to develop your
application, you must include certain files, statements, or global variables
at the beginning of your application. For example, you must include the
header file
sys/ugpib.h
in your source code if you are using C/C++.
You must link the language interface library with your compiled source
code. Link the GPIB library
libgpib
as shown by the following example:
cc test.c -lgpib
Note
A linkable object module,
cib.o
, is installed with the software for backward
compatibility. National Instruments strongly recommends that you link with the GPIB
library to ease transition to future upgrades.
If you are using LabVIEW for your application, you do not need to add any
files to implement GPIB. Everything is included.
For information about each NI-488 function and IEEE 488.2-style
function, choosing a programming method, developing your application, or
compiling and linking, refer to the
NI-488.2M Software Reference Manual
.
The IEEE 488.2-style functions are compatible with any other NI-488.2
functions used with other National Instruments products, except for the
following functions:
•
ibdma
•
IBGET
,
IBSET
,
IBDINFO