Chapter 3
Software Installation and Configuration
© National Instruments Corp.
3-3
AT-GPIB for SCO UNIX
B. Install the Utility Files
1.
Copy the file
ugpib.h
to
/usr/include/sys
by entering the
following command.
cp ugpib.h /usr/include/sys
2.
Copy the files
ibic
,
ibconf
,
ibtsta
, and
ibtstb
to a directory
in the command search path (for example,
/usr/bin
) by entering the
following commands.
cp ibic /usr/bin
cp ibconf
/usr/bin
cp ibtsta /usr/bin
cp ibtstb /usr/bin
C. Install the C Library
Compile and convert the file
cib.c
to a C library file. This procedure is
necessary because the NI-488M Software Reference Manual assumes that a
library has already been created for the C language interface. To compile
the file
cib.c
and create a C language library, enter the following
commands.
cc -c cib.c
ar rv /usr/lib/libgpib.a cib.o
Alternatively, you can add
cib.o
to an existing library or include
cib.o
during the link phase of each compile operation.
Step 3. Load the NI-488M Driver
The NI-488M driver supports one or two boards. The first AT-GPIB board
is named
gpib0
and the second AT-GPIB board is named
gpib1
.