National Instruments GPIB-PC User Manual

Page 130

Advertising
background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-55

GPIB-PC User Manual

The board

IBRDF

operation terminates on any of the following events:

Error is detected;

Time limit is exceeded;

END message is detected;

EOS character is detected (if this option is enabled); or

Device Clear (DCL) or Selected Device Clear (SDC)
command is received from another device which is the CIC.

After termination,

IBCNT%

contains the number of bytes read, modulo

65,536.

Device Example:

1.

Read data from the device

RDR%

into the file

RDGS

on disk

drive B.

100 REM Perform device read.
110 FLNAME$ = "B:RDGS"
120 CALL IBRDF (RDR%,FLNAME$)
130 REM Check IBSTA% and IBCNT% to see how
140 REM the read completed (not done here).
150 REM All addressing and unaddressing has
160 REM been done.

Advertising