Download NI-488.2M Software Reference Manual

Transcript
Contents
IBRSP (3) .................................................................... 5-70
IBRSV (3) .................................................................... 5-72
IBSAD (3).................................................................... 5-73
IBSGNL (3) ................................................................. 5-75
IBSIC (3) ..................................................................... 5-77
IBSRE (3) .................................................................... 5-78
IBTMO (3)................................................................... 5-79
IBTRG (3).................................................................... 5-82
IBWAIT (3) ................................................................. 5-83
IBWRT (3)................................................................... 5-86
IBWRTF (3) ................................................................ 5-88
C GPIB Programming Examples ............................................... 5-90
C Example Program – Device Functions .................... 5-92
C Example Program – Board Functions ...................... 5-96
Chapter 6
ibic .......................................................................................................... 6-1
Running ibic ...................................................................................... 6-1
Using NI-488.2 Routines ........................................................... 6-2
Using Send .......................................................................... 6-3
Using Receive ..................................................................... 6-3
Using NI-488 Functions............................................................. 6-3
Using HELP ........................................................................ 6-4
Using ibfind ........................................................................ 6-4
Using ibdev ......................................................................... 6-5
Using ibwrt.......................................................................... 6-7
Using ibrd............................................................................ 6-7
How to Exit ibic ......................................................................... 6-8
Adding Common EOS Characters ............................................. 6-8
Using SET .................................................................................. 6-8
ibic Functions and Syntax ................................................................. 6-9
Status Word ....................................................................................... 6-14
Error Code ......................................................................................... 6-15
Byte Count ........................................................................................ 6-16
Auxiliary Functions........................................................................... 6-16
HELP (Display Help Information)............................................. 6-17
! (Repeat Previous Function) ..................................................... 6-17
- (Turn OFF Display) ................................................................. 6-18
+ (Turn ON Display) .................................................................. 6-18
n* (Repeat Function n Times) .................................................... 6-19
$ (Execute Indirect File) ............................................................ 6-19
PRINT (Display the ASCII String) ............................................ 6-20
© National Instruments Corp.
ix
NI-488.2M Reference Manual