National Instruments GPIB-PC User Manual

Page 102

Advertising
background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-27

GPIB-PC User Manual

Methods B and C together determine when write operations
send the END message. If Method B alone is chosen, the
END message is sent automatically with the EOS byte
when the low 7 bits of that byte match the low 7 bits of the
EOS character. If Methods B and C are chosen, a full 8-bit
comparison is used.

Note that defining an EOS byte for a device or board does
not cause the handler to automatically send that byte when
performing

IBWRT

s. To send the EOS byte, your

application program must include it in the data string it
defines.

Device

IBEOS

Function:

When

BD%

specifies a device, the options coded in

V%

are used for all

device reads and writes in which that device is specified.

Board

IBEOS

Function:

When

BD%

specifies a board, the options coded in

V%

become

associated with all board reads and writes.

Refer also to

IBEOT

and Table 2.1.

Device Example:

1.

Send END when the linefeed character is written to the device

DVM%

.

10 EOSV% = &H0A

' EOS info for IBEOS.

:
:
100 V% = EOSV% + &H0800
110 CALL IBEOS (DVM%,V%)
120 WRT$ = "123" + CHR$(&H0A)
130

' Data bytes to be

140

' written. EOS

150

' character is the

160

' last byte.

170 CALL IBWRT (DVM%,WRT$)

Advertising