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