Contents
NI-488.2 User Manual for Windows viii www.natinst.com
Chapter 7
NI-488.2 Programming Techniques
Termination of Data Transfers......................................................................................7-1
High-Speed Data Transfers (HS488).............................................................................7-2
Enabling HS488..............................................................................................7-2
System Configuration Effects on HS488........................................................7-3
Waiting for GPIB Conditions........................................................................................7-4
Asynchronous Event Notification in Win32 NI-488.2 Applications............................ 7-4
Calling the ibnotify Function.......................................................................... 7-4
ibnotify Programming Example......................................................................7-5
Writing Multithreaded Win32 NI-488.2 Applications.................................................. 7-9
Device-Level Calls and Bus Management....................................................................7-11
Talker/Listener Applications.........................................................................................7-11
Serial Polling.................................................................................................................7-12
Service Requests from IEEE 488 Devices......................................................7-12
Service Requests from IEEE 488.2 Devices...................................................7-12
Automatic Serial Polling.................................................................................7-13
Stuck SRQ State...............................................................................7-13
Autopolling and Interrupts................................................................7-14
SRQ and Serial Polling with Device-Level Traditional NI-488.2 Calls......... 7-14
SRQ and Serial Polling with Multi-Device NI-488.2 Calls............................7-15
Example 1: Using FindRQS............................................................. 7-16
Example 2: Using AllSpoll...............................................................7-16
Parallel Polling..............................................................................................................7-17
Implementing a Parallel Poll...........................................................................7-17
Parallel Polling with Traditional NI-488.2 Calls..............................7-17
Parallel Polling with Multi-Device NI-488.2 Calls.......................... 7-19
Appendix A
GPIB Basics
Appendix B
Status Word Conditions
Appendix C
Error Codes and Solutions
Appendix D
Windows 98/95: Troubleshooting and Common Questions