Chapter 5 debugging your application, Chapter 6 ni spy utility – National Instruments NI-488.2 User Manual

Page 6

Advertising
background image

Contents

© National Instruments Corporation

vii

NI-488.2 User Manual

Language-Specific Programming Instructions for Windows ........................................4-14

Microsoft Visual C/C++ (Version 6.0 or Later)..............................................4-14
Borland C/C++ (Version 5.0.2 or Later) .........................................................4-14
Visual Basic (Version 6.0) ..............................................................................4-15
Direct Entry with C .........................................................................................4-15

gpib-32.dll Exports............................................................................4-15
Directly Accessing the gpib-32.dll Exports ......................................4-16

Language-Specific Programming Instructions for Mac OS X.......................................4-19
Language-Specific Programming Instructions for Linux ..............................................4-19

Chapter 5
Debugging Your Application

NI Spy ............................................................................................................................5-1
Global Status Functions .................................................................................................5-1
NI-488.2 Error Codes ....................................................................................................5-1
Configuration Errors ......................................................................................................5-2
Timing Errors.................................................................................................................5-2
Communication Errors...................................................................................................5-3

Repeat Addressing...........................................................................................5-3
Termination Method........................................................................................5-3

Other Errors ...................................................................................................................5-3

Chapter 6
NI Spy Utility

Overview........................................................................................................................6-1
Starting NI Spy ..............................................................................................................6-1

Windows..........................................................................................................6-1
Mac OS X and Linux.......................................................................................6-1

Monitoring API Calls with NI Spy ................................................................................6-2
Using the NI Spy Online Help .......................................................................................6-2
Locating Errors with NI Spy..........................................................................................6-2
Debugging Existing Applications ..................................................................................6-3
Viewing Properties for Recorded Calls .........................................................................6-3
Exiting NI Spy ...............................................................................................................6-3
Performance Considerations ..........................................................................................6-3

Advertising