
KPCI-488LPA-900-01 Rev. A / December 2008
2-23
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
Parameters
ud
: board or device descriptor
mask
: GPIB event code.
contains the valid event codes.
Table 2-11
GPIB event codes for mask
Event
code
Description
- 0
No mask
- TIMO
The notify period is limited by the timeout period (see
ibtmo
)
- END
END or EOS is detected
- SRQI
SRQ signal is sent (only board level)
- RQS
Device requested service (only device level)
- CMP
I/O completion
- LOK
GPIB interface is in
Lockout Status
(only board level)
- REM
GPIB interface is in
Remote Status
(only board level)
- CIC
GPIB interface is
CIC
(only board level)
- ATN
Attention signal is sent (only board level)
- TACS
GPIB interface is a talker (only board level)
- LACS
GPIB interface is a listener (only board level)
- DTAS
GPIB interface is in
Device Trigger Status
(only board level)
- DCAS
GPIB interface is in
Device Clear Status
(only board level)
If GPIB mask is non-zero, the events specified by mask are monitored by
ibnotify
.
while one or more of the events appears, the callback function is called. For board-
level
ibnotify
call, all mask bits are valid except for ERR and RQS. For device-level
ibnotify call,
CMPL
,
TIMO
,
END
, and
RQS
are the only valid mask bits. If
TIMO
is set
in the notify mask,
ibnotify
calls the callback function even if no events have occurred
while the limited time is gone. If
TIMO
is not set in the notify mask, the callback
function is not called until one or more specified events occur.
Callback
: the address callback function (
contains a description of the
function’s properties)
.
Table 2-12
Callback description (for ibnotify)
Property
Description
Prototype
int_std call Callback (int LocalUd,
int Local
ibsta
, int LocalIberr,
long LocalIbcntl, void *RefData)
Parameters
LocalUd
: board or device descriptor
Local
ibsta
: the
ibsta
value
LocalIberr
: the
iberr
value
LocalIbcntl
: the
ibcntl
value
RefData
: the reference data for the callback function
defined by user
Return value
the next mask of the notified GPIB event
Error code
EDVR
RefData
: the reference data for the callback function defined by user
Return Value
The value of the
ibsta
Error Codes
EARG, ECAP, EDVR, ENEB, EOIP