Chapter 4 GPIB/GPIB-488.2 Library
© National Instruments Corporation 4-25 LabWindows/CVI Standard Libraries
See Also
ThreadIbsta, ThreadIbcnt, ThreadIbcntl.
ThreadIbsta
int threadSpecificStatus = ThreadIbsta (void);
Note: This function is available only under Windows 95 and NT.
This function returns the value of the thread-specific ibsta 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 ibsta variable.
If you are not using multiple threads, the value returned by this function is identical to the value
of the ibsta global variable.
Parameters
none
Return Value
threadSpecificStatus integer The status value for the current thread of execution. The
status value describes the state of the GPIB and the result
of the most recent GPIB function call in the thread. Any
value with the ERR bit set indicates an error. Call
ThreadIberr for a specific error code.