Contents
NI-488.2 User Manual for Windows viii © National Instruments Corp.
! (Repeat Previous Function)............................................................. 5-15
- (Turn OFF Display) and + (Turn ON Display)............................... 5-15
n* (Repeat Function n Times)........................................................... 5-16
$ (Execute Indirect File).................................................................... 5-16
Print (Display the ASCII String)....................................................... 5-17
Buffer (Set Buffer Display Mode).....................................................5-17
Chapter 6GPIB Spy................................................................................................................... 6-1
Overview.......................................................................................................... 6-1
Starting GPIB Spy ...........................................................................................6-1
Exiting GPIB Spy ............................................................................................ 6-2
Viewing Call Details........................................................................................ 6-2
GPIB Spy Configuration Options.................................................................... 6-3
Calls to Highlight .............................................................................. 6-3
Calls To Trap On............................................................................... 6-3
Buffer History ...................................................................................6-3
Set Highlight Color ...........................................................................6-3
Store Configuration........................................................................... 6-4
GPIB Spy Output Options............................................................................... 6-4
To Screen........................................................................................... 6-4
To File............................................................................................... 6-4
Clear Screen.......................................................................................6-4
GPIB Spy Help ................................................................................................ 6-5
Performance Considerations............................................................................ 6-5
Chapter 7GPIB Programming Techniques .....................................................................7-1
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-3
Device-Level Calls and Bus Management.......................................................7-3
Talker/Listener Applications........................................................................... 7-4
Waiting for Messages from the Controller........................................ 7-4
Using the Event Queue...................................................................... 7-5
Requesting Service............................................................................ 7-5
Serial Polling ...................................................................................................7-5
Service Requests from IEEE 488 Devices ........................................ 7-5
Service Requests from IEEE 488.2 Devices..................................... 7-6
Automatic Serial Polling................................................................... 7-6
Stuck SRQ State.................................................................. 7-6
Autopolling and Interrupts.................................................. 7-7
SRQ and Serial Polling with NI-488 Device Functions.................... 7-7
SRQ and Serial Polling with NI-488.2 Routines............................... 7-8
Example 1: Using FindRQS............................................... 7-9
Example 2: Using AllSpoll................................................ 7-9