National Instruments 320682C Musical Toy Instrument User Manual


 
GPIB/GPIB-488.2 Library Chapter 4
LabWindows/CVI Standard Libraries 4-22 © National Instruments Corporation
ThreadIbcnt
int
threadSpecificCount = ThreadIbcnt
(void);
Note:
This function is available only under Windows 95 and NT.
This function returns the value of the thread-specific ibcnt 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 ibcnt variable.
If you are not using multiple threads, the value returned by this function is identical to the value
of the ibcnt global variable.
Parameters
none
Return Value
threadSpecificCount
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, ThreadIbcntl.
ThreadIbcntl
long
threadSpecificCount = ThreadIbcntl
(void);
Note:
This function is available only under Windows 95 and NT.
This function returns the value of the thread-specific ibcntl 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 ibcntl variable.