Contents
© National Instruments Corp.
vii
NI-488.2M SRM for OS/2
Communication Errors ............................................................... 4-6
Repeat Addressing ....................................................... 4-6
Termination Method..................................................... 4-6
Chapter 5
ibic—Interface Bus Interactive Control Utility
....................5-1
Overview..................................................................................... 5-1
Starting ibic................................................................................. 5-1
Exiting ibic ................................................................................. 5-2
ibic Syntax ..................................................................................5-2
Adding End-of-String Characters............................................... 5-9
Status Word Return..................................................................... 5-9
Error Codes Return..................................................................... 5-10
Count Return............................................................................... 5-10
Common NI-488.2 Routines in ibic ........................................... 5-11
Send ..............................................................................5-11
Receive......................................................................... 5-12
Common NI-488 Functions in ibic............................................. 5-13
ibfind ............................................................................5-13
ibdev............................................................................. 5-13
ibwrt ............................................................................. 5-16
ibrd ............................................................................... 5-17
Auxiliary Functions ....................................................................5-18
Set (Select Device or Board) ........................................5-19
Help (Display Help Information) ................................. 5-20
! (Repeat Previous Function) ....................................... 5-21
- (Turn OFF Display) and + (Turn ON Display) ......... 5-21
n* (Repeat Function n Times) ......................................5-22
$ (Execute Indirect File)............................................... 5-23
Print (Display the ASCII String) ..................................5-24
ibic Examples ............................................................................. 5-24
NI-488.2 Routines Example......................................... 5-24
NI-488 Device Functions Example ..............................5-28
NI-488 Board Functions Example ............................... 5-31
Chapter 6
GPIB Programming Techniques
................................................6-1
Termination of Data Transfers ................................................... 6-1
Waiting for GPIB Conditions ..................................................... 6-2
Device-Level Calls and Bus Management ................................. 6-2
Serial Polling ..............................................................................6-3
Service Requests from IEEE 488 Devices ................... 6-3
Service Requests from IEEE 488.2 Devices ................6-4