National Instruments GPIB-PC Network Card User Manual


 
BASICA/QuickBASIC GPIB-PC Function Calls Section Four A
GPIB-PC User Manual 4A-60 ©National Instruments Corp.
BASICA/QuickBASIC BASICA/QuickBASIC
IBRDIA IBRDIA
Purpose: Read data asynchronously to integer array
Format:
BASICA and QuickBASIC Version 1.0:
Call IBRDIA (BD%,IARR%(0),CNT%)
QuickBASIC Version 2 and 3:
Call IBRDIA (BD%, VARPTR(IARR%(0)),CNT%)
QuickBASIC Version 4:
Call IBRDIA (BD%, IARR%(), CNT%)
Remarks: BD% specifies a device or an interface board. IARR%
specifies an integer array into which data is read
asynchronously from the GPIB. CNT% specifies the
maximum number of bytes to be read. VARPTR returns the
address of the array so that it may be passed to the
language interface.
This is a special case of the IBRDA function, which stores
a maximum of 255 data bytes into a character string
variable in BASICA. In QuickBASIC this function stores
up to 32K data bytes into a character string variable.
Read asynchronously up to CNT% bytes of data from BD%
and store in IARR%. As the data is read, each byte pair is
treated as an integer and stored in IARR%.