©
National Instruments Corporation
13
Installing Your GPIB Hardware and NI-488.2 for Solaris
•
Learn new NI-488.2 functions and routines before integrating them into your
application
•
Troubleshoot problems with your application
Enter the following command to run
ibic
:
ibic
For more information about
ibic
, refer to Chapter 6,
ibic
, of 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 C language interface library using one of the following commands,
where
example.c
is your application name:
cc example.c -lgpib
or
cc example.c -dy -lgpib
or
cc example.c -dn -lgpib
-dy
specifies dynamic linking, which is the default method. It links the application
to
libgpib.so
.
-dn
specifies static linking in the link editor. It links the