beautypg.com

National Instruments GPIB-PC User Manual

Page 140

background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-65

GPIB-PC User Manual

Device Example:

1.

Remotely configure the device

LCRMTR%

to respond positively

on DI03 if its individual status bit is 1, and then parallel poll all
configured devices.

100 V% = %H6A
110 CALL IBPPC (LCRMTR%,V%)
120 CALL IBRPP (LCRMTR%,PPR%)

Board Examples:

1.

Remotely configure the device

BRD0%

at listen address &H23

(ASCII #) to respond positively on DI03 if its individual status
bit is 1, and then parallel poll all configured devices.

100 REM Send LAD, PPC, PPE, and UNL.
110 CMD$ = "#" + CHR$(&H05) + "j?"
120 CALL IBCMD (BRD0%,CMD$)
130 CALL IBRPP (BRD0%,PPR%)

2.

Disable and unconfigure all GPIB devices from parallel polling
using the PPU (&H15) command.

100 CMD$ = CHR$(&H15)

' PPU

110 CALL IBCMD (BRD0%,CMD$)