![Keithley KPCI-488 LPA Скачать руководство пользователя страница 47](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953047.webp)
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-21
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
Parameters
ud
: board descriptor
line_status
: the status information of the returned GPIB control line
Return Value
The value of the
ibsta
Error Codes
EARG, EDVR, ENEB, EOIP
ibln
Description
This command determines if there is an available device on bus.
Support Level
Board / device level
Syntax
Microsoft C/C++ and Borland C++
int ibln (int ud, int pad, int sad,
short *found_listener)
Visual Basic
ibln (ByVal ud As Integer, ByVal pad As Integer,
ByVal sad As Integer, found_listener As Integer)
As Integer
- or -
call ibln (ByVal ud As Integer, ByVal pad As Integer,
ByVal sad As Integer, found_listener As Integer)
Parameters
ud
: board or device descriptor. The board tests for listeners if
ud
is a board descriptor.
ibln
tests for listeners with the interface related with the device if
ud
is a device
descriptor. If a listener is detected, a non-zero value is returned in the
found_listener
.
pad
: device primary address (addressing value between 0 and 30)
sad
: the device secondary address (addressing value is between 96 and 126,
NO_SAD
or
ALL_SAD
.
NO_SAD
is no secondary addressing, only a primary
addressing for example.
ALL_SAD
is set to test all secondary addresses)
found_listener
: shows if there is a device available
Return Value
The value of the
ibsta
Error Codes
EARG, ECIC, EDVR, ENEB, EOIP
ibloc
Description
If a board is not in lockout status,
ibloc
sets the board in local control mode. If
LOK
does not exist in the status word,
ibsta
, the board is in a lockout state. If a board is in
lockout, calling
ibloc
has no effect.
If the computer is used as an apparatus,
ibloc
is used to simulate a panel
RTL
(Return to Local) switch.
All device-level commands automatically set the device to remote mode except the
Remote Enable (REN) line
is not controlled by
ibsre
;
ibloc
is used to temporarily set
the device from
remote
mode to
local
mode before the next device-level command is
executed.
Support Level
Board / device level