Installation and Configuration
Chapter 2
1014/NI-488M/Motorola UNIX
2-2
© National Instruments Corp.
2.
Create a working directory (for example,
/usr/gpib
)
and change to
that directory.
3.
Copy the distribution files from the NI-488M distribution medium to
this directory by entering the following command:
tar xvf /dev/rst0
Install the Utility Files
Complete the following steps to install the utility files :
1.
Copy the file
ugpib.h
to
/usr/include/sys/ugpib.h
by
entering the following command:
cp ugpib.h
/usr/include/sys/ugpib.h
2.
Copy the file
gpib.o
to
/usr/src/uts/m68k/io/gpib.o
by
entering the following command:
cp gpib.o
/usr/src/uts/m68k/io/gpib.o
3.
Copy the files
ibic
and
ibconf
to a directory in the command
search path (for example,
/bin
or
/usr/bin
) by entering the
following commands:
cp ibic /usr/bin
cp ibconf /usr/bin
Install the C Library
The file
cib.c
should be compiled and converted to a library . 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 r /lib/libgpib.a cib.o
ranlib /lib/libgpib.a