Chapter 4 Using the GPIB Hardware and Software
CPCI-GPIB/PMC-GPIB for Windows NT
4-2
© National Instruments Corporation
Introduction to the GPIB Spy Utility
Included with the NI-488.2M software is GPIB Spy, a Win32 utility that
you can use to monitor NI-488.2M calls made by Win32, Win16, and
DOS GPIB applications. You can use GPIB Spy to do the following:
•
Capture information about NI-488 functions and NI-488.2M routines
as your GPIB applications invoke them.
•
Display captured information, including, but not limited to, input and
output parameter values, I/O buffer contents, and return values.
•
Save, restore, and print captured information.
Follow these instructions to run GPIB Spy:
Windows NT 3.51: Double-click on the GPIB Spy icon in the
NI-488.2M Software for Windows NT group of the Program
Manager.
Windows NT 4.0 or higher: Select the GPIB Spy item under
Start»Programs»NI-488.2M Software for Windows NT.
For more information about the GPIB Spy utility, refer to Chapter 5,
GPIB Spy Utility, in the NI-488.2M User Manual for Windows 95 and
Windows NT, or use the GPIB Spy context-sensitive online help.
General Programming Considerations
As you begin developing your Win32 NI-488.2M application, remember
the following points:
•
For your C/C++ application, you must include the NI-488.2M header
file in your source code.
•
You can access the NI-488.2M software through the 32-bit DLL,
gpib-32.dll
, either by linking with one of the language interfaces
provided with the NI-488.2M software, or by using direct DLL entry
from any programming environment.
•
Several sample GPIB applications are included with the NI-488.2M
software. Use these as a guide for your own application
development.