Ibwrti – National Instruments GPIB-PC User Manual

Page 170

Advertising
background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-95

GPIB-PC User Manual

BASICA/QuickBASIC

BASICA/QuickBASIC

IBWRTI

IBWRTI

Purpose:

Write data from integer array

Format:

BASICA and QuickBASIC Version 1.0:

Call IBWRTI (BD%,IARR%(0),CNT%)

QuickBASIC Version 2.0 and 3.0:

Call IBWRTI (BD%, VARPTR(IARR%(0)),
CNT%)

QuickBASIC Version 4.0:

Call IBWRTI (BD%, IARR%(), CNT%)

Remarks:

BD%

specifies a device or an interface board.

IARR%

is an

integer array from which data is written to the GPIB.

CNT%

specifies the maximum number of bytes to be written.

Write

CNT%

bytes of data from

IARR%

to the GPIB. The

data, stored as two-byte integers in

IARR%

, is sent in low-

byte, high-byte order to the GPIB.

This is a special case of the

IBWRT

function, which writes

a maximum of 255 bytes from a character string to the
GPIB. This function is useful when those bytes are stored
in integer format.

Refer to the

IBWRT

function and to the information about

BASICA/QuickBASIC GPIB-PC I/O Functions at the
beginning of this section. Refer also to

IBWRTIA

.

Advertising