beautypg.com

GW Instek GDS-2000 series Programming manual User Manual

Page 11

background image

GDS-2000 Series Programming Manual

11

4.

To write data to the device, use ibwrt.

ud0: ibwrt "*IDN?"
[0100] (cmpl)
count: 5

5.

To read data from your device, use ibrd. The data that is read from the

instrument is displayed. For example, to read 29 bytes, enter the following:

ud0: ibrd 29
[0100] (cmpl)
count: 29

47 57 2C 20 47 44 53 2D GW, GDS-
32 32 30 32 2C 20 50 39 2202, P9
32 30 31 33 30 2C 20 56 20130, V
2E 31 2E 30 30 .1.00

6.

When you finish communicating with the device, make sure you put it offline

using the ibonl command, as follows:

ud0: ibonl 0
[0100] (cmpl)
:
The ibonl command properly closes the device handle and the ud0 prompt is no
longer available.

7.

To exit Interactive control, type q.

For the details, please refer to National Instrument’s manual.

If you do not receive a proper response from the oscilloscope, please check the

power is on, the GPIB address is correct, and all cable connections are active,