beautypg.com

Step 3. transfer data – National Instruments GPIB-PC User Manual

Page 245

background image

Application Notes

Appendix E

GPIB-PC User Manual

E-2

©National Instruments Corp.

Each computer finds the appropriate device and should respond as
follows:

Example:

Master

Slave

SLAVE:

GPIB0:

Step 3. Transfer Data

In this example, you must press RETURN on the slave before you press
RETURN on the master.

Example:

Master

Slave

SLAVE:

GPIB0:

ibwrt "hello"

ibrd 5

The master sends a data string to the slave, which should appear as
follows:

Master

Slave

[0100](cmpl)

Count: 5

"hello"

Count: 5

NOTE: The read and write commands must be executed here within a
certain time limit of each other; otherwise the timeout factor which
comes at a default of ten seconds will abort the operation.