2-42
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
ReceiveSetup
Description
This command configures the device to be a talker and the interface to a receiver.
After the function
ReceiveSetup
,
RcvRespMsg
function is usually called to transfer
the data from the device to the interface.
ReceiveSetup
is helpful for multiple
RcvRespMsg
calls. When
ReceiveSetup
is adopted, the re-addressing is not
necessary when each data block is received.
Syntax
Microsoft C/C++ and Borland C++
void ReceiveSetup (int board_desc,
Addr4882_t address)
Visual Basic
call ReceiveSetup (ByVal ud As Integer,
ByVal addr As Integer)
Parameters
board_desc
: board ID
address
: the device address; the device you want the talker to address
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB
ResetSys
Description
This command resets and initializes devices. The function contains three steps. First,
reset the GPIB by controlling the
Remote Enable (REN) line
and then controlling the
Interface Clear (IFC) line
. Second, send the
Universal Device Clear (DCL)
GPIB
message to clear all devices. Finally, send the
"*RST\n"
message to the address list,
addrlist
, to complete resetting and initialization of the device.
Syntax
Microsoft C/C++ and Borland C++
void ResetSys (int board_desc,
const Addr4882_t addressList[])
Visual Basic
call ResetSys (ByVal ud As Integer,
addressList ( ) As Integer)
Parameters
board_desc
: board ID
addressList
: the list of the device addresses ended by
NOADDR
Error Codes
EABO, EARG, EBUS, ECIC, EDVR, ENOL, EOIP, ENEB, ESAC
Send
Description
This command writes data bytes from the buffer to the device. The operation is
normally stopped until the count data bytes have been written. If
eotmode
is
DABend
, the
EOI
line is set to enable while the final byte is sent. If
eotmode
is
NULLend
, the
EOI
line is set to disable while the final byte is sent. If
eotmode
is
NLend
, the
EOI
line is controlled while the final byte and the following new character
"\n" have been sent. Returns the actual number of transferred bytes in the global
variable,
ibcntl
.