© National Instruments Corp. v NI-488.2 User Manual for Windows
Contents
About This Manual ............................................................................................... xiii
How to Use This Manual Set........................................................................... xiii
Organization of This Manual........................................................................... xiv
Conventions Used in This Manual................................................................... xv
Related Documentation ................................................................................... xvi
Customer Communication ............................................................................... xvi
Chapter One
Introduction
.............................................................................................................. 1-1
GPIB Overview ............................................................................................... 1-1
Talkers, Listeners, and Controllers ................................................... 1-1
Controller-In-Charge and System Controller .................................... 1-1
GPIB Addressing............................................................................... 1-2
Sending Messages Across the GPIB ................................................. 1-2
Data Lines ........................................................................... 1-2
Handshake Lines................................................................. 1-3
Interface Management Lines............................................... 1-3
Setting Up and Configuring Your System......................................... 1-4
Controlling More Than One Board..................................... 1-5
Configuration Requirements ............................................................. 1-5
The NI-488.2 Software Package ...................................................................... 1-6
NI-488.2 Driver and Driver Utilities................................................. 1-6
C Language Files............................................................................... 1-7
Visual Basic Language Files ............................................................. 1-7
Win 32s Files..................................................................................... 1-8
Sample Application Files .................................................................. 1-8
How the NI-488.2 Software Works with Windows......................................... 1-8
Unloading and Reloading the NI-488.2 Driver ............................................... 1-9
Chapter 2
Application Examples
........................................................................................... 2-1
Example 1: Basic Communication ................................................................. 2-2
Example 2: Clearing and Triggering Devices................................................. 2-4
Example 3: Asynchronous I/O........................................................................ 2-6
Example 4: End-of-String Mode..................................................................... 2-8
Example 5: Service Requests.......................................................................... 2-10
Example 6: Basic Communication with IEEE 488.2-Compliant Devices ..... 2-14
Example 7: Serial Polls Using NI-488.2 Routines ......................................... 2-16
Example 8: Parallel Polls ................................................................................ 2-18
Example 9: Non-Controller Example ............................................................. 2-20