National Instruments NI-488.2 NI-488.2 User Manual page 77

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

Advertisement

The
Note
of your application. If your application will be performing other NI-488.2 operations while
it is using
ThreadIbsta
in the
Writing Multithreaded NI-488.2 Applications
your application needs to share global variables with the callback, use a synchronization
primitive (for example, a semaphore) to protect access to any globals. For more
information about the use of synchronization primitives, refer to the documentation about
using operating system synchronization objects that came with your development tools.
© National Instruments Corporation
Both board-level and device-level
NI-488.2 driver. If you are using device-level calls, you can call
with a device handle for
If you are using board-level calls, you can call
handle for
and a
ud
bits are identical to the
your GPIB device to request service, you might choose to pass
a
with RQS (for device-level) or SRQI (for board-level).
mask
The callback function that you register with the
by the NI-488.2 driver when one or more of the mask bits passed to
is TRUE.
ibnotify
The callback function is of type
in the gpib header file,
The callback function is passed a unit descriptor, the current values of the
NI-488.2 global variables, and the user-defined reference data that was
passed to the original
return value for the callback as a mask value that is used to automatically
rearm the callback if it is non-zero. For a complete description of
, refer to the NI-488.2 online help. For instructions on accessing
ibnotify
the online help, refer to the
About This
Manual.
callback is executed in a separate thread of execution from the rest
ibnotify
, use the per-thread NI-488.2 globals that are provided by the
ibnotify
,
,
ThreadIberr
Chapter 8
ibnotify
and a
ud
mask
of any values except RQS. The
mask
mask bits. In the example of waiting for
ibwait
GPIBNotifyCallback_t
.
ni488.h
call. The NI-488.2 driver interprets the
ibnotify
Using the NI-488.2 Documentation
, and
ThreadIbcnt
ThreadIbcntl
section of this chapter. In addition, if
8-5
NI-488.2 Programming Techniques
calls are supported by the
of RQS, CMPL, END, or TIMO.
with a board
ibnotify
ibnotify
call is invoked
ibnotify
and is defined
functions described
NI-488.2 User Manual
ibnotify
mask
ibnotify
section in

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents