EasyManua.ls Logo

National Instruments GPIB-PC - Page 124

National Instruments GPIB-PC
262 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section Four A BASICA/QuickBASIC GPIB-PC Function Calls
©National Instruments Corp. 4A-49 GPIB-PC User Manual
Board Examples:
1. Read 56 bytes of data from a device at talk address &H4C
(ASCII L) and then unaddress it (the GPIB-PC listen address is
&H20 or ASCII space).
100 CMD$ = "? L" ' UNL MLA TAD
110 CALL IBCMD (BRD0%,CMD$)
120 RD$ = SPACE$(56)
130 CALL IBRD (BRD0%,RD$)
140 REM Check IBSTA% to see how the read
150 REM terminated on: CMPL, END, TIMO or
160 REM ERR.
170 REM Data is stored in RD$.
180 REM Unaddress the Talker and Listener.
190 CMD$ = "_?" ' UNT UNL
200 CALL IBCMD (BRD0%,CMD$)
2. To terminate the read on an end-of-string character, see IBEOS
examples.

Table of Contents

Related product manuals