beautypg.com

National Instruments GPIB-PC User Manual

Page 164

background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-89

GPIB-PC User Manual

Board Example:

1.

Write 10 instruction bytes to a device at listen address &H2F
(ASCII /) and then unaddress it (the GPIB-PC talk address is
&H40 or ASCII @).

100 REM Perform addressing.
110 CMD$ = "?@/"

' UNL MTA LAD

120 CALL IBCMD (BRD0%,CMD$)
130 REM Perform board write.
140 WRT$ = "F3R1X5P2G0"
150 CALL IBWRT (BRD0%,WRT$)
160 REM Unaddress the Talker and Listener.
170 CMD$ = "_?"

' UNT UNL

180 CALL IBCMD (BRD0%,CMD$)