Contents
© National Instruments Corp. vii NI-488.2 User Manual for Windows
Method 2. Generate an Import Library
Using implib.....................................................3-20
Method 3. Use LoadLibrary and GetProcAddress............. 3-20
Direct Entry with Visual Basic.......................................................... 3-23
Chapter 4
Debugging Your Application.............................................................................4-1
Running wibtest............................................................................................... 4-1
Presence Test of Driver..................................................................... 4-1
Presence Test of Board...................................................................... 4-1
GPIB Cables Connected.................................................................... 4-2
Running GPIBInfo........................................................................................... 4-2
Debugging with the Global Status Variables................................................... 4-3
Debugging with wibic...................................................................................... 4-4
Debugging with GPIB Spy.............................................................................. 4-4
GPIB Error Codes............................................................................................ 4-4
Configuration Errors........................................................................................ 4-5
Timing Errors................................................................................................... 4-6
Communication Errors..................................................................................... 4-6
Repeat Addressing............................................................................. 4-6
Termination Method.......................................................................... 4-6
Common Questions .........................................................................................4-7
Chapter 5
wibic–Windows Interface Bus Interactive Control Utility ...................5-1
Overview.......................................................................................................... 5-1
Example Using NI-488 Functions................................................................... 5-1
wibic Syntax.....................................................................................................5-4
Number Syntax.................................................................................. 5-4
String Syntax..................................................................................... 5-5
Address Syntax.................................................................................. 5-5
wibic Syntax for NI-488 Functions................................................... 5-5
wibic Syntax for NI-488.2 Routines .................................................5-8
Status Word .....................................................................................................5-9
Error Information............................................................................................. 5-9
Count................................................................................................................ 5-10
Common NI-488 Functions............................................................................. 5-10
ibfind .................................................................................................5-10
ibdev.................................................................................................. 5-10
ibwrt...................................................................................................5-12
ibrd.....................................................................................................5-12
Common NI-488.2 Routines in wibic.............................................................. 5-13
Set...................................................................................................... 5-13
Send and SendList............................................................................. 5-13
Receive.............................................................................................. 5-13
Auxiliary Functions......................................................................................... 5-14
Set (Select Device or Board)............................................................. 5-15
Help (Display Help Information) ...................................................... 5-15