beautypg.com

National Instruments GPIB-PC User Manual

Page 161

background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-86

©National Instruments Corp.

Device Example:

1.

Wait indefinitely for the device

LOGGER%

to request service.

100 MASK% = &H800

' RQS

110 CALL IBWAIT (LOGGER%,MASK%)

Board Examples:

1.

Wait for a service request or a timeout.

100 MASK% = &H5000

' TIMO SRQI

110 CALL IBWAIT (BD%,MASK%)
120 REM Check IBSTA% here to see which
130 REM occurred.

2.

Update the current status for

IBSTA%

.

100 MASK% = 0
110 CALL IBWAIT (BD%,MASK%)

3.

Wait indefinitely until control is passed from another CIC.

100 MASK% = &H20

' CIC

110 CALL IBWAIT (BD%,MASK%)

4.

Wait indefinitely until addressed to talk or listen by another
CIC.

100 MASK% = &H0C

' TACS LACS

110 CALL IBWAIT (BD%,MASK%)