Chapter 4 GPIB/GPIB-488.2 Library
© National Instruments Corporation 4-23 LabWindows/CVI Standard Libraries
If you are not using multiple threads, the value returned by this function is identical to the value
of the ibcntl global variable.
Parameters
none
Return Value
threadSpecificCount long
integer The number of bytes actually transferred by the most
recent GPIB read, write, or command operation for the
current thread of execution. If an error occurred loading
the GPIB DLL, this is the error code returned by the MS
Windows LoadLibrary function.
See Also
ThreadIbsta, ThreadIberr, ThreadIbcnt.
ThreadIberrint threadSpecificError = ThreadIberr (void);
Note: This function is available only under Windows 95 and NT.
This function returns the value of the thread-specific iberr variable for the current thread.
The global variables ibsta, iberr, ibcnt, and ibcntl are maintained on a process-specific
(rather than thread-specific) basis. If you are calling GPIB functions in more than one thread, the
values in these global variables may not always be reliable.
Status variables analogous to ibsta, iberr, ibcnt, and ibcntl are maintained for each
thread. This function returns the value of the thread-specific iberr variable.
If you are not using multiple threads, the value returned by this function is identical to the value
of the iberr global variable.
Parameters
none
Return Value
threadSpecificError integer The most recent GPIB error code for the current thread of
execution. The value is meaningful only when
ThreadIbsta returns a value with the ERR bit set.