Debugging Your Application; Ni Spy; Global Status Variables; Ni-488.2 Error Codes - National Instruments NI-488.2 NI-488.2 User Manual

National instruments network hardware - networking hardware user manual
Hide thumbs Also See for NI-488.2 NI-488.2:
Table of Contents

Advertisement

Debugging Your Application

NI Spy

Global Status Variables

NI-488.2 Error Codes

© National Instruments Corporation
This chapter describes several ways to debug your application.
The NI Spy utility monitors NI-488.2 API calls made by NI-488.2
applications. If an application does not have built-in error detection
handling, you can use NI Spy to determine which NI-488.2 call is failing.
For more information about using NI Spy, select Help»Help Topics
in NI Spy or refer to Chapter 6,
At the end of each NI-488.2 call, the global status variables (
,
, and
iberr
ibcnt
ibcntl
NI-488.2 application, you should check for errors after each NI-488.2 call.
If a NI-488.2 call failed, the high bit of
failed NI-488.2 call,
iberr
error cases, the value in
Once you know which NI-488.2 call fails, refer to Appendix B,
Word
Conditions, and Appendix C,
understanding why the NI-488.2 call failed. This information is also
available in the NI-488.2 online help. For instructions on accessing the
online help, refer to the
About This
Manual.
The error variable,
iberr
status variable,
ibsta
possible solutions, refer to Appendix C,
NI Spy
Utility.
) are updated. If you are developing an
ibsta
contains a value that defines the error. In some
contains even more error information.
ibcntl
Error Codes and
Using the NI-488.2 Documentation
, is meaningful only when the ERR bit in the
, is set. For a detailed description of each error and
Error Codes and
5-1
5
,
ibsta
(the
bit) is set. For a
ERR
Status
Solutions, for help
section in
Solutions.
NI-488.2 User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents