Error Codes and Solutions Appendix B
NI-488.2 User Manual for Windows B-2 © National Instruments Corp.
• An invalid unit descriptor is passed to any function call. In this case, the variable
ibcntl contains the DOS error code 6, Invalid handle.
• The driver (gpib.dll) is not installed.
• The driver configuration file gpib.ini is not located in the windows directory. In
this case, the variable ibcntl contains the value -1.
• The driver file gpib.ini is in the windows directory but not compatible with the
driver file gpib.dll that you are using. In this case, the variable ibcntl contains
a negative value other than -1.
Solutions
• Use ibdev to open a device without specifying its symbolic name.
• Use only device or board names that are configured in the utility program wibconf
as parameters to the ibfind function.
• Use the unit descriptor returned from ibfind as the first parameter in subsequent
NI-488 functions. Examine the variable before the failing function to make sure the
function has not been corrupted.
• Make sure the NI-488.2 driver is installed by checking that gpib.dll and
gpib.ini are in the windows directory (usually c:\windows).
ECIC (1)
ECIC is returned when one of the following board functions or routines is called while
the board is not CIC:
• Any device-level NI-488 functions that affect the GPIB
• Any board-level NI-488 functions that issue GPIB command bytes, such as ibcmd,
ibcmda, ibln , ibrpp
• ibcac, ibgts
• Any of the NI-488.2 routines that issue GPIB command bytes, such as SendCmds,
PPoll, Send , Receive