National Instruments GPIB-PC User Manual

Page 131

Advertising
background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-56

©National Instruments Corp.

Board Example:

1.

Read data from a device at talk address &H4C (ASCII L) to
the file

RDGS

on the current disk drive and then unaddress it

(the GPIB-PC listen address is &H20 or ASCII space).

100 REM Perform addressing in preparation
110 REM for board read.
120 CMD$ = "?L " ' UNL TAD MLA
130 CALL IBCMD (BRD0%,CMD$)
140 REM Perform board read.
150 FLNAME$ = "RDGS"
160 CALL IBRDF (BRD0%,FLNAME$)
170 REM Check IBSTA% and IBCNT% to see how
180 REM the read completed (not done here).
190 REM Unaddress the Talker and Listener.
200 CMD$ = "_?"

' UNT UNL

210 CALL IBCMD (BRD0%,CMD$)

Advertising