Using ibwrt, Using ibrd – National Instruments GPIB-PC User Manual

Page 192

Advertising
background image

IBIC

Section Five

GPIB-PC User Manual

5-4

©National Instruments Corp.

Using

IBWRT

The

IBWRT

command sends data from one GPIB device to another. For

example, to send a data string from the computer to a device called

dev1

, the following command would suffice:

Example:

dev1:

[0100] (cmpl)

count: 6

ibwrt "F3R5T1"

This command sends the string

"F3R5T1"

to device called

dev1

. The

returned Status Word [0100] indicates a successful I/O completion,
while the Byte Count indicates that all six characters were sent from
the computer and received by the device.

Using

IBRD

The

IBRD

command causes a GPIB device to receive data from another

GPIB device. The following example illustrates the use of the

IBRD

function.

Example:

N D C V ( 0 0 0

. 0 0 4 7 E + 0

• •

dev1:

[2100] (end cmpl)

count: 18

4E 44 43 56 28 30 30 30

2E 30 30 34 37 45 2B 30

0D 0A

ibrd 20

Advertising