![Keithley KPCI-488 LPA Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953053.webp)
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-27
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
Once the asynchronous I/O has begun, later GPIB commands are strictly limited; any
command that would interfere with the I/O in progress will not be allowed. In this case,
EOIP
is returned by the driver.
When the I/O is complete, the application and the driver must be re-synchronized.
Use one of the following functions to re-synchronize:
ibwait
: If the CMPL bit of the returned
ibsta
is set, the driver and application are re-
synchronized.
ibnotify
: If the
ibsta
value sent to the ibnotify callback contains
CMPL
, the driver and
application are re-synchronized.
ibstop
: The I/O is stopped, and the driver and application are re-synchronized.
ibonl
: The I/O is stopped and the interface is reset; the driver and application are re-
synchronized.
Support Level
Board / device level
Syntax
Microsoft C/C++ and Borland C++
int ibrda (int ud, void *buf, long cnt)
Visual Basic
ibrda (ByVal ud As Integer, buf As String, ByVal cnt
As Long) As Integer
- or -
call ibrda (ByVal ud As Integer, buf As String)
Parameters
ud
: device descriptor
buf
: the buffer that stores the data that is read from the GPIB
cnt
: the number of the bytes that is read from the GPIB
Return Value
The value of the
ibsta
Error Codes
EABO, EADR, EBUS, ECIC, EDVR, ENEB, EOIP
ibrdf
Description
This command reads data from a device and saves it to a file.
The GPIB is addressed by
ibrdf
, which reads the data bytes from the GPIB device,
then saves them to a file (when
ud
is a device descriptor). The operation stops when
END
is read. If the data transfer does not finish before the timeout period ends, the
operation stops with an error. The actual number of transferred bytes is returned in the
global variable,
ibcntl
.
Data bytes are read from the GPIB device by
ibrdf
, then saved to a file when
ud
is the
board descriptor. The GPIB has already been addressed by the board-level
ibrdf
; the
operation stops when
END
is read. If the data transfer is not complete within the
timeout period (or the board is not CIC, and CIC sends the
Device Clear
message on
the GPIB bus), the operation stops with an error. The actual number of transferred
bytes is returned in the global variable,
ibcntl
.
Support Level
Board / device level