Status word – National Instruments GPIB-PC User Manual

Page 198

Advertising
background image

IBIC

Section Five

GPIB-PC User Manual

5-10

©National Instruments Corp.

characters into the string as shown in the following string:

F3R5T1\r\n

. Since the carriage return can be represented

equally well in hex,

xD

and

r

are equivalent strings.

5.

bdname

is the symbolic name of the new device or board; for

example,

ibfind dev1

or

set gpib0

.

6.

v

is the number of bytes to read.

7.

flname

is the DOS pathname of the file to be read or written,

e.g.,

\test\meter

or

printr.buf.

8.

mask

is a hex, octal, or decimal integer (see note 3) or a mask

bit mnemonic.

Status Word

All

IBIC

functions return the status word

IBSTA

in two forms — a hex

value in square brackets, and a list of mnemonics in parentheses.

Example:

dev1:

[900](rqs cmpl)

COUNT: 5

dev1:

ibwrt "f2t3x"

In this example, the status word shows that the device level write
operation completed successfully and that

dev1

is requesting service.

Table 5.2 lists the mnemonics of the status word. This is the same list
that is given in Table 4.1.

Advertising