2-46
Return to
KPCI-488LPA-900-01 Rev. A / December 2008
Section 2: NI Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
SetRWLS
Description
This command configures the device to lockout status of remote control mode.
SetRWLS
sets the devices listed in addrlist to remote control mode by controlling the
Remote Enable (REN) GPIB line
. Then, the
LLO GPIB
message sets the devices to
lockout status. Before the
Controller-In-Charge
calls
EnableLocal
to release
Local
Lockout
, the user can not locally operate these devices.
Syntax
Microsoft C/C++ and Borland C++
void SetRWLS ((int board_desc,
const Addr4882_t addressList[])
Visual Basic
call SetRWLS (ByVal ud As Integer,
addressList ( ) As Integer)
Parameters
board_desc
: board ID
addressList
: the list of the device addresses ended by
NOADDR
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB, ESAC
TestSRQ
Description
This command detects the current status of the
GPIB Service Request (SRQ) line
. If
the SRQ is controlled, the result contains a non-zero value. Otherwise, the result
contains a zero value.
TestSRQ
is used to get the current status of GPIB SRQ line.
WaitSRQ
is used to wait until the device controls the GPIB SRQ line.
Syntax
Microsoft C/C++ and Borland C++
void TestSRQ (int board_desc, short *result)
Visual Basic
call TestSRQ (ByVal ud As Integer, result As Integer)
Parameters
board_desc
: board ID
result
: the status of the SRQ line
Error Codes
EDVR, EOIP, ENEB
TestSys
Description
This command causes devices to process self tests.
TestSys
sends the "TST?"
message to the devices. The "TST?" message makes the devices test themselves
individually. Then it reads sixteen-bit self-test results from the devices. The self test
result 0\n shows that the device passed its self test (if the self test result is not 0\n, it
means that the device did not pass its self test). Refer to the documents that came
with the device to determine cause of the failed self test. If
TestSys
does not return
Error
(i.e., the
ERR
bit is not set in
ibsta
), the failure number of the self tests is
contained in
ibcntl
. Otherwise, the meaning of the
ibcntl
depends on the returned
failure. If the device does not send a response in a limited time, then the test result, ?,
is reported, and the error
EABO
is returned.